Hello all,
This one is killing me, I was banging my head for several hours and couldn't solve it until I got some external help.
What I was trying to achieve is - Every request that is not calling index.php, robots.txt or resources folder to be rewritten to example.com/index.php/variable
On a development server, this worked as expected:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
But when I moved the code to my production server (running ISPConfig), the above didnt work because "?" had to be added:
Code:
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
Can maybe someone explain me, why?
I was lost here :-(
Recent comments
15 hours 6 min ago
1 day 34 min ago
1 day 1 hour ago
1 day 4 hours ago
1 day 9 hours ago
1 day 9 hours ago
1 day 11 hours ago
1 day 21 hours ago
2 days 2 hours ago
2 days 4 hours ago