Welcome Guest, Not a member yet? Register   Sign In
folder and parameter has same name
#1

[eluser]Tejas D[/eluser]
Hi Everyone



I developed a website using CI.

I put all the folders in localhost(eg appl., system,etc).

Also I have a folder name xyz in localhost.

when I use localhost/demo/xyz/

xyz is as parameter.


But it is going to xyz folder instead calling my demo and treating xyz as parameter.

I tried to solve using .htaccess,but failed.

I want that xyz to be treated as parameter and not as folder in localhost


please suggest solution on this.
#2

[eluser]Aditzu[/eluser]
[quote author="Tejas D" date="1352290725"]Hi Everyone



I developed a website using CI.

I put all the folders in localhost(eg appl., system,etc).

Also I have a folder name xyz in localhost.

when I use localhost/demo/xyz/

xyz is as parameter.


But it is going to xyz folder instead calling my demo and treating xyz as parameter.

I tried to solve using .htaccess,but failed.

I want that xyz to be treated as parameter and not as folder in localhost


please suggest solution on this.
[/quote]


make a route something like this:

$route['demo/(:any)'] = 'index_urgent/demo/$1';
#3

[eluser]Aditzu[/eluser]
try to make a route something like this:
Code:
$route['demo/(:any)'] = 'your_class/demo/$1';




Theme © iAndrew 2016 - Forum software by © MyBB