I have a site on a VPS
. It’s a combination of static html and a WMPU
installation, where I use subsites for categories.
I was working on migrating all static html content to WP pages, and decided to use the main WP of WPMU for this (so pages would have the following url structure: www.tmpdomain.com/this-is-a-page
).
It all worked ok until I had to switch VPS recently. I adjusted DNS
at my registrar/host
and also altered the Cloudflare settings so it would all point to the new IP address.
However, everything works fine except for the pages that I made within the main WP. Those now are not working and show a ERR_TOO_MANY_REDIRECTS
.
Besides the htaccess code provided through WPMU, the following code was added a long time ago to make sure the static html is shown first (as home/landing
page) and not the index.php of the WPMU main part:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^tmpdomain.com [NC]
RewriteRule ^(.*)$ https://www.tmpdomain.com/$1 [R=301,L]
RewriteRule ^(.*)RK=0/RS= /$1 [L,NC,R=301]
RewriteRule ^(.*)RS=^ /$1 [L,NC,R=301]
I am not sure what causes that error/loop
. As far as I know nothing changed besides the IP (and VPS itself).
To specify what works and what not:
This works:
www.tmpdomain.com
www.tmpdomain.com/this-is-a-page.htm
www.tmpdomain.com/subsite/this-is-a-page (wordpress MU subsite page)
This does not work:
www.tmpdomain.com/this-is-a-page (wordpress MU main page)
Can anyone perhaps verify if the code in my htaccess should work with the goal of serving the index.htm
instead of index.php
and do people perhaps have a clue where to start looking for the strange endless redirect on the WordPress pages (only the ones in the main category of WPMU, not the subsites)?
I removed the htaccess
part I showed above. Site works with no difference. Issue remains.
I checked all places where I can adjust the IP. It is correct.
I turned off all plugins, turned them on one by one. No change.
I might need to look into the database, but not sure where to start.