I tried to clone a wordpress multisite on localhost. Instead of loading http://localhost/test.org
, requests are redirected to test.org
. I've summarized different things I've tried to resolve this issue.
[Update: I've changed http://localhost/test.org
to localhost/test.org
]
In .htaccess
, I've tried changing RewriteEngine
from On
to Off
, and I've done a search and replace to change test.org
to localhost\test.org
.
The cache is empty.
In the database, I've updated the following tables / values, changing test.org to localhost/test.org.
wp_options
/siteurl
wp_options
/home
wp_site
wp_sitemeta
/siteurl
wp_blogs
/domain
wp_#_options
>siteurl
(replacing # with the number of each site in the network)wp_#_options
/home
wp_#_options
/ fileupload_url
In wp-config.php
, WP_HOME
and WP_SITEURL
are both localhost/test.org
.
Here's the multisite config section in wp-config.php
:
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'test.org');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
If I try to set DOMAIN_CURRENT_SITE
to localhost/test.org
, I get an error message saying: "The page isn’t redirecting properly", "Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
I thought that a plugin might be causing the problem, so I moved everything from wp-content/plugins
to another folder.
I've cleared the browser cache and I've used a different browser.
Does anyone have recommendations for other steps I could try?
test.org
. If you updateDOMAIN_CURRENT_SITE
and try it in a private Firefox window (or a different browser entirely), does it work as expected?