.htaccess question
-
On my WordPress MultiSite I had the standard suggested .htaccess in root directory for subdomains setup:
RewiteEngine On RewriteBase / RewriteRule ^index.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^(wp-(content|admin|includes).*) $1 [L] RewriteRule ^(.*.php)$ $1 [L] RewriteRule . index.php [L]
This was causing due to domain/site changes or who knows what a 500 Internal Server Error in the browser and the following in error_log:
[Fri Jun 13 06:53:47 2014] [error] [client 192.168.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Fri Jun 13 06:53:47 2014] [debug] core.c(3072): [client 192.168.0.1] r->uri = /shadowforum/non-existent.php [Fri Jun 13 06:53:47 2014] [debug] core.c(3078): [client 192.168.0.1] redirected from r->uri = /shadowforum/non-existent.php [Fri Jun 13 06:53:47 2014] [debug] core.c(3078): [client 192.168.0.1] redirected from r->uri = /shadowforum/non-existent.php [Fri Jun 13 06:53:47 2014] [debug] core.c(3078): [client 192.168.0.1] redirected from r->uri = /shadowforum/non-existent.php [Fri Jun 13 06:53:47 2014] [debug] core.c(3078): [client 192.168.0.1] redirected from r->uri = /shadowforum/non-existent.php [Fri Jun 13 06:53:47 2014] [debug] core.c(3078): [client 192.168.0.1] redirected from r->uri = /shadowforum/non-existent.php [Fri Jun 13 06:53:47 2014] [debug] core.c(3078): [client 192.168.0.1] redirected from r->uri = /shadowforum/non-existent.php [Fri Jun 13 06:53:47 2014] [debug] core.c(3078): [client 192.168.0.1] redirected from r->uri = /shadowforum/non-existent.php [Fri Jun 13 06:53:47 2014] [debug] core.c(3078): [client 192.168.0.1] redirected from r->uri = /shadowforum/non-existent.php [Fri Jun 13 06:53:47 2014] [debug] core.c(3078): [client 192.168.0.1] redirected from r->uri = /shadowforum/non-existent.php [Fri Jun 13 06:53:47 2014] [debug] core.c(3078): [client 192.168.0.1] redirected from r->uri = /shadowforum/non-existent.php
The only thing I could figure out so far is to comment this line:
# RewriteRule ^(.*\.php)$ $1 [L]
All seems to be fine but what should this line be doing, am I losing any functionality or is there a better solution?
Thanks in advance!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘.htaccess question’ is closed to new replies.