Welcome Guest, Not a member yet? Register   Sign In
.htaccess without the '?' : Working locally, but not on production server
#1

[eluser]BilliamTheSecond[/eluser]
I'm currently using this for .htaccess and config.php:
Code:
RewriteEngine on
DirectorySlash Off
RewriteCond $1 !^(assets|index\.php|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
Code:
$config['uri_protocol'] = "PATH_INFO";

It works perfectly on my local installation, but on production causes 404, with nothing going through the index script.

I can only get production working with
Code:
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
Code:
$config['uri_protocol'] = "REQUEST_URI";

But this setup means that any additional query string causes a 404 error. This kills some jquery scripts that add ?_=(timestamp) to ajax requests to avoid the cache.

My question is:
What could be causing the different behavior between the two installations? What can I change to make the first one above work on my production install?


Messages In This Thread
.htaccess without the '?' : Working locally, but not on production server - by El Forum - 06-08-2010, 12:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB