Welcome Guest, Not a member yet? Register   Sign In
How to create long tail url in CI 3.
#1
Thumbs Down 
(This post was last modified: 08-27-2020, 07:05 AM by php_rocs.)

Hey,
     I am newbie in CI 3 I choose my new project ifsc finder tool to make on ci 3. But I am facing some URL kind of issue. I know that ci URL work on this hierarchy Controller > Method > params. But I want to SEO URL like domain_name/query1/query2/query3 and so on.
My site URL https://www. ifsccode-bank.in and I want to achieve like this URL https://www. ifsccode-bank.in/state-bank-of-india/west-bengal/ballygunge/comm-br-ballygunge
How to create like this URL.
Reply
#2

(This post was last modified: 08-31-2020, 01:18 AM by Ashok@in.)

This is simply.
controller/function/var/var/var

Example:
in controller index function call var / var / var

index($var1,$var2=null,$var3=null,$var4=null){
// your code
// $var1 is bank name
// $var2 is city name
// $var3 is another name
// $var4 is another name

}

this url like this
/$var1/$var2/$var3/$var4
Reply




Theme © iAndrew 2016 - Forum software by © MyBB