Issue with Subsites
-
Hi There,
I am wondering if somebody can help me explain what the correct set up should be for the following scenario.
History: it was originally set up by a hosting company, but their server crashed and I had to move to another hosting company. So I have a multisite, that was working fine until I had to move it.Scenario:
Mainsite: elmexicano.net.au
subsite1: elmexicano.net.au/joondalup
subsite2: elmexicano.net.au/armadale
subsite3: trotterscafe.com.auIn addition I have a clone of the LIVE site as TEST site. This TEST site sits in a folder under the root, while the LIVE site is installed on the root level.
What I am struggling with are the subsites elmexicano.net.au/joondalup and
elmexicano.net.au/armadale.
On the backend I get an error called “This webpage has a redirect loop
ERR_TOO_MANY_REDIRECTS”
on the front end, the site loads only half.My htaccess file was reading like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]RewriteCond %{HTTP_HOST} ^trotterscafe\.com\.au$ [NC]
RewriteRule ^(.*)$ https://www.trotterscafe.com.au/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^elmexicano\.net\.au$ [NC]
RewriteRule ^(.*)$ https://www.elmexicano.net.au/$1 [R=301,L]# RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
# RewriteRule ^locations.kml$ /index.php?sitemap=wpseo_local_kml [L]
# RewriteRule ^geo_sitemap.xml$ /index.php?sitemap=geo [L]
# RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
# RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [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]
</IfModule>since I got 404 errors for the subsites, my new hosting company has changed it in an attempt to help me to this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressMainsite and subsite3 working fine.
Please can anybody tell me what my htaccess file should look like? and should I have another htaccess file for my test site?
Also my wp-config says this:
define(‘WP_DEBUG’, false);
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘www.elmexicano.net.au’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);define( ‘WP_ALLOW_MULTISITE’, true );
define(‘FS_METHOD’, ‘direct’);define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, false);define( ‘SUNRISE’, ‘on’ );
Thanking you in advance.
Kind regards
Regine
https://www.ads-software.com/plugins/wordpress-mu-domain-mapping/
- The topic ‘Issue with Subsites’ is closed to new replies.