Exclude wordpress redirect block.
-
When I create a secure htaccess file, how do I exclude the wordpress redirect block? I inherited a wordpress install which has the htaccess file in a directory about the wordpress directory. I can use your plugin to secure the site but I’ve discovered having the wordpress redirect lines in both htaccess files creates a conflict.
The lines I’m referring to are:
# WP REWRITE LOOP START RewriteEngine 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)$ wp/$1 [L] RewriteRule . index.php [L]
The error I get when this block is in both the root htaccess and the /wordpress access is.
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.
Thanks
- The topic ‘Exclude wordpress redirect block.’ is closed to new replies.