apache module write breaks htaccess file
-
I manage a few WordPress subdirectory-based multisites. I use both the WordPress and Apache modules to create redirects for various purposes.
For the last several versions of Redirection I’ve been having an issue using the htaccess file writing feature of the apache module.
I have between 75-250 redirections for these networks. When I create a new redirect in the apache module the Redirection plugin writes new rules to my htaccess file, but rather than creating a single block of rewrite rules, the plugin writes the opening comments and IfModule tag correctly, but then the long list of rewrite rules are broken up inconsistently by a comment listing the date Redirection updated the htaccess file and a closing IfModule tag over and over again.
So the resulting htaccess file has an opening IfModule and then changes 200 lines of rewrite rules to 8000+ lines of duplicated rewrite rules and hundreds of closing IfModule tags.
If i delete all the rewrite rules and then add a redirect Redirection creates a perfect set of rewrite rules, but the next rewrite rule I add causes the problem all over again.
The topic ‘apache module write breaks htaccess file’ is closed to new replies.