Too many redirects on multisite that worked before with none of the usual tips working

[ad_1]

Hi there. Need some help, pls.

Am running a WP multisite (subfolders) with a total of 3 different sites. 1st and main site is my old business hp, 2nd is a private blog and 3rd is my new business page.

WP is installed into a subfolder ‘wordpress’ in my hosting root, so the 3 sites were accessible as:

* [mydomain.com/wordpress])
* [mydomain.com/wordpress/private\_site])
* mydomain.com/wordpress/business\_site\_new

In hosting root resides also a Nextcloud installation within a subfolder and a single page WP instance in another subfolder. Both are working nicely.

So my multisite was working as it should and I tried to find a way to switch the main site with the business\_site\_new (complete redesign). This was done by trying to set the domain [mydomain.com]) to point to [mydomain.com/wordpress/business\_site\_new]) which didn’t work.

I must add, that year ago, when I set up the WP site in the subfolder ‘wordpress’, I added an *index.hmtl* with:

<meta http-equiv=”refresh” content=”1; url=wordpress/”>

To call the [mydomain.com/wordpress]) when going to [mydomain.com]).

This all worked for years now.

What’s my problem?

Problem is now, that if I open [mydomain.com]), I get `ERR_TOO_MANY_REDIRECTS` and the URL is changed from [mydomain.com/wordpress]) to [mydomain.com/wordpress/business\_site\_new]. There somehow gets the `wordpress/business_site_new/` added to the URL, without me knowing where it comes from.

What I tried:

* Clear browser cache & cookies (sure thing)
* Tested with different browsers on different machines, with WLAN and with mobile data
* checked .htaccess, wordpress/wp-config.php, wordpress/.htaccess for redirection but can’t find anything wrong
* Moved plugins out of the way with `mv wp-content/plugins/ wp-content/plugins.deact`
* Tried defining site\_url & home in wp-config.php and theme’s function.php with different URLs
* Checked mysql-db for site\_url & home and grep’ed a mysqldump for `wordpress/business_site_new/`, but there’s nothing
* The problem persists for all 3 sites, so calling [mydomain.com/wordpress/private\_site] gets too many redirects and is converted to [mydomain.com/wordpress/business\_site\_new] ;(
* Even moved wordpress folder to wordpress.old and restored the wordpress folder from a backup few days ago when all was working. I even also dropped the DB and recreated it from a dump from same backup.

I really have no idea anymore what to do. All tipps found when searching on the net were tried to no avail.

This is my .htaccess from web root:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /wordpress/
RewriteRule index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L] </IfModule>

This is wordpress/.htaccess:

Options +FollowSymlinks +Indexes
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /wordpress/ RewriteRule index.php$ – [L] # uploaded files RewriteRule [_0-9a-zA-Z-]+/?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule [_0-9a-zA-Z-]+/?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L] RewriteRule  [_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L] RewriteRule  [_0-9a-zA-Z-]+/(.*.php)$ $1 [L] RewriteRule . index.php [L]

And this is wp-config.php

// Mysql settings

// Multisite
define(‘WP_ALLOW_MULTISITE’, true);
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, false );
$base = ‘/wordpress/’;
define( ‘DOMAIN_CURRENT_SITE’, ‘www.mydomain.com’ );
define( ‘PATH_CURRENT_SITE’, ‘/wordpress/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );
define(‘WP_MEMORY_LIMIT’, ‘128M’);

As you can see, there’s nothing in regards to redirecting by adding `wordpress/business_site_new/` to the URL!?

I’m out of my knowledge or ideas of where the f\* this comes from!?

I managed to install a new WP instance into a different subfolder ‘wp-new’, enabled it to be multisite (need to be subfolder style then, because of WP not residing in web root) and it works flawlessly by calling [mydomain.com/wp-new/]).

So, if anyone has an idea or more infos are needed, pls let me know and I’ll provide!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer