So I keep bumping into server errors and I can't seem to spot where the issue is stemming from. I am able to log in to my admin panel but the redirects keep creating errors.
Not sure if the issue lies in my .htaccess
(which everytime I change seems to just make the matter worse), my .wp-config
file or in my database tables (wp_site, wp_options
etc)
I have my multi-site install located in WAMP folder at /www/oggo-local/
and am using a sub-directory multi-site setup.
.htaccess
RewriteEngine On
RewriteBase /oggo-local/
RewriteRule ^index\.php$ - [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).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
wp-config
define('WP_DEBUG', false);
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'localhost');
define('PATH_CURRENT_SITE', '/oggo-local/');
define('SITE_ID_CURRENT_SITE', 1);
('BLOG_ID_CURRENT_SITE', 1);
Any help appreciated as I seem to be running in circles. If you need table values from my database I can provide that as well.
So I keep bumping into server errors and I can't seem to spot where the issue is stemming from. I am able to log in to my admin panel but the redirects keep creating errors.
Not sure if the issue lies in my .htaccess
(which everytime I change seems to just make the matter worse), my .wp-config
file or in my database tables (wp_site, wp_options
etc)
I have my multi-site install located in WAMP folder at /www/oggo-local/
and am using a sub-directory multi-site setup.
.htaccess
RewriteEngine On
RewriteBase /oggo-local/
RewriteRule ^index\.php$ - [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).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
wp-config
define('WP_DEBUG', false);
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'localhost');
define('PATH_CURRENT_SITE', '/oggo-local/');
define('SITE_ID_CURRENT_SITE', 1);
('BLOG_ID_CURRENT_SITE', 1);
Any help appreciated as I seem to be running in circles. If you need table values from my database I can provide that as well.
Share Improve this question asked Apr 8, 2020 at 21:45 Bruce BannerBruce Banner 32 bronze badges 2 |1 Answer
Reset to default 0For anyone who stumbles across this, the issue lied within my wp_2_options
table (the options for my second site within the multi-site).
Whereas for the most part you can forego the http://
before your localhost domain, in this table you cannot. This was causing issues when attempting to upgrade the network etc.
I hope this helps someone - I knew it would be something ridiculous.
/oggo-local/wp-admin/localhost/oggo-local/wp-admin/tools.php?page=better-search-replace&tab=bsr_search_replace&result=true HTTP/1.1" 404 331
I can access dashboard, log-in etc.... but somewhere the localhost/oggo-local is being thrown again and repeating itself... no idea why or where – Bruce Banner Commented Apr 8, 2020 at 22:28