Welcome Guest, Not a member yet? Register   Sign In
Mod rewrite problem? Urls all go back to home page
#7

[eluser]TheFuzzy0ne[/eluser]
I think that removing the QSA from your htaccess file might fix it. You're not using a query string, so it shouldn't be needed:
Code:
DirectoryIndex index.php

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

RewriteCond $1 !^(index\.php|images|css|js|swf|xml|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

I've also changed the second part of your code so it works with any domain, and I've put it at the top as I don't think it will ever be reached when it's at the bottom.


Messages In This Thread
Mod rewrite problem? Urls all go back to home page - by El Forum - 03-04-2009, 10:30 AM
Mod rewrite problem? Urls all go back to home page - by El Forum - 03-04-2009, 10:46 AM
Mod rewrite problem? Urls all go back to home page - by El Forum - 03-04-2009, 10:54 AM
Mod rewrite problem? Urls all go back to home page - by El Forum - 03-04-2009, 11:08 AM
Mod rewrite problem? Urls all go back to home page - by El Forum - 03-04-2009, 11:43 AM
Mod rewrite problem? Urls all go back to home page - by El Forum - 03-04-2009, 01:59 PM
Mod rewrite problem? Urls all go back to home page - by El Forum - 03-04-2009, 03:43 PM
Mod rewrite problem? Urls all go back to home page - by El Forum - 07-14-2009, 09:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB