For some reason this rule is causing havoc in all subsequent rules (none of theme work). What does it mean exactly?
RewriteRule . /index.php [L]
|
For some reason this rule is causing havoc in all subsequent rules (none of theme work). What does it mean exactly?
|
|||
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
|
That rule is apparently supposed to hide the "index.php" part of a visible url. When your working url is this http://www.somesite.com/index.php, this rule will make the browser display http://www.somesite.com/. Well, it's probably acting the other way around. When the server receives a request http://www.somesite.com/, it'll serve up http://www.somesite.com/index.php, just without showing that last bit. There are other ways to do this that may be more effective and less likely to cause problems such as you're experiencing. I did a google search for "mod rewrite RewriteRule . /index.php" to get this info, and most of the pages seem to have some useful suggestions regarding better ways to do this. |
|||
|
|
|
I believe it redirects it to root. That way when you go to www.example.com it doesn't show www.example.com/index.php. Helpful for SEO purposes. Is this a Wordpress setup? This is a good article over on stackoverflow that explains this. |
|||
|
|
RewriteCondlines before this one. – LazyOne Aug 2 '11 at 22:19