Welcome Guest, Not a member yet? Register   Sign In
Problems with $config['uri_protocol'] and .htaccess
#1

[eluser]Unknown[/eluser]
I've just upgraded from 1.7.2 to 2.0.2, and hit a problem. Has anyone found anything similar?

My project has a single controller, called 'main'. I've got a rewrite rule that looks like this:

Code:
RewriteRule ^(.*)$ /index.php/main/$1/ [L]

I also had to change $config['uri_protocol'] to 'PATH_INFO' to get this to work. The whole site works fine on Localhost, but when I upload to my remote host, the only page I can access is my index page. Trying to go to any other page just returns the index page.

If I change $config['uri_protocol'] to 'ORIG_PATH_INFO' on my remote host, most of the site works - but going to 'http://mydomain.com' returns a 404. However, going to 'http://mydomain.com/main' gets to the correct index page.

Does anyone have any idea what's going on? Or perhaps some hack to force 'http://mydomain.com' to show my home page?

Failing that, is there any huge disadvantage to reverting to 1.7.2?

Thanks in advance for any help!




Theme © iAndrew 2016 - Forum software by © MyBB