Welcome Guest, Not a member yet? Register   Sign In
mod_rewrite url redirect problem
#3

[eluser]freaksauce[/eluser]
[quote author="alexsancho" date="1190030345"]Try this rules instead,

Code:
RewriteEngine On

    RewriteCond %{HTTP_HOST} ^www\.(.*)$
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteRule ^(.*)$ /index.php/$1 [L,QSA]
[/quote]

Oh you are a legend, thanks so much I really don't understand mod_rewrite!


Messages In This Thread
mod_rewrite url redirect problem - by El Forum - 09-17-2007, 12:18 AM
mod_rewrite url redirect problem - by El Forum - 09-17-2007, 12:59 AM
mod_rewrite url redirect problem - by El Forum - 09-17-2007, 01:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB