sef urls issue when CI installed in sub directory |
[eluser]nvhack[/eluser]
my pages load correctly when I use a url like http://localhost/ci/index.php?mytest but not when I use urls like this http://localhost/ci/mytest It routes me back to http://localhost/ not http://localhost/ci/ I use XAMPP as my laptop server and I develop many sites from subdirectories So I really want it installed in the subdirectory. Is there a way of fixing this? Perhaps via the route.php? I have my base_url set Code: $config['base_url']= "http://localhost/ci/"; and have tried all of these options instead of AUTO Code: | 'AUTO' Default - auto detects my htaccess file is Code: RewriteEngine on Any ideas?
[eluser]Pascal Kriete[/eluser]
It's almost definitely the htaccess file. Is it in the CI directory, or in the web root? (should be the former) Try this: Code: RewriteEngine on
[eluser]metaltapimenye[/eluser]
[quote author="inparo" date="1222328126"]It's almost definitely the htaccess file. Is it in the CI directory, or in the web root? (should be the former) Try this: Code: RewriteEngine on i agree,.. else, check your vhost.conf, make sure there's no fishy related to .htaccess .. ![]()
[eluser]nvhack[/eluser]
Yes! that was it. Thank you. Obvious now that I see it. |
Welcome Guest, Not a member yet? Register Sign In |