I have a website with two WP installations in subdolders and just an htaccess on the root that redirects the traffic to one of those subdolders to make it appear as if it was on root.
The problem is that this wp-installationn keeps editing the htaccess on the root level and it messes everything up goin on a redirect hell (returning error 500).
I tried to lock the htaccess but my stupid host won’t let me set 444 only 644. I tried adding apply_filter(‘got_redirects’, false) but it doesn’t seem like it did anything.
Is there a solution to this problem? What would be the correct approach?
PS: I cannot change host, and I can’t move the installation to root. I will probably rebuild two separate websites in a few months but I can’t right now.
[ad_2]
What exactly gets “messed up”? Where are you writing the redirects code? Don’t do it in the WordPress section that’s commented. Screenshots are helpful.