Welcome Guest, Not a member yet? Register   Sign In
URL Rewriting doesn't work anymore (codeigniter 2.0 official release)
#13

[eluser]Spir[/eluser]
It seems like on OVH when using PHP 5.3 mod_rewrite doesn't work.
I have 404 headers on all my page when using it


Code:
#PHP 5.2
SetEnv PHP_VER 5
#PHP 5.3
#SetEnv PHP_VER 5_TEST


<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond $1 !^(index\.php|robots\.txt|img\/|css\/|js\/|favicon.ico)
    RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    ErrorDocument 404 /index.php
</IfModule>

So when I'm using PHP 5.3 it goes through:
Code:
<IfModule !mod_rewrite.c>
Then 404 header are put. I have to manually set them to 200 when I need it Sad
Becarefull of that.


Messages In This Thread
URL Rewriting doesn't work anymore (codeigniter 2.0 official release) - by El Forum - 02-01-2011, 01:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB