Welcome Guest, Not a member yet? Register   Sign In
Problem removing index.php - I just get the homepage all the time...?
#1

[eluser]pro18a[/eluser]
Hi,

I've just launched our new site, however I can't get it to redirect correcly when I remove the index.php file in .htaccess

When I click to visit one of the controller pages, I just get the homepage instead. The URL shows correctly I.e.
http://www.18aproductions.co.uk/portfoli...favourites

But it's just the homepage...

Has anyone run into this problem before?

It worked just fine when I was running it off a temporary URL, i.e.
http://174.121.0.134/~pro18a/

But when I run it off the top level domain name, it just shows the homepage all the time...

Thanks,
Tom
#2

[eluser]pro18a[/eluser]
After a lot of trial and error I *think* and hope I've fixed it.

Edited config.php and changed the uri_protocol from AUTO to $config['uri_protocol'] = "ORIG_PATH_INFO";

Weird but I'm happy as our new site is looking good!
#3

[eluser]devastator[/eluser]
just remove "/" before index.php
like this:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
#4

[eluser]pro18a[/eluser]
Thanks, pretty sure I tried that... Issue is also confused slightly as I had other .htaccess stuff in there too. I think it must just be a weird server setup though as it was all working fine on my local wamp server. Thanks anyway, I'll know for next time to try those other config settings sooner.




Theme © iAndrew 2016 - Forum software by © MyBB