Installed multisite, now links with "www" in them don't work
-
Just migrated my site to a new host and installed multisite. Everything migrated over just fine and seems to be working correctly and all the pages have the same address, so relative links work.
However, a problem has now arisen with old links in the content that included a ‘www’. Even though
exists and is fully functional, any link that goes to
https://www.mysite.com/sub-page
doesn’t work and redirects back to the homepage. I know the problem could probably be fixed in my htaccess file, but I’m not sure how it would work with the existing WordPress multisite rules.
Here is my existing htaccess file:
# Use PHP5 Single php.ini as default AddHandler application/x-httpd-php5s .php # BEGIN WordPress RewriteEngine On RewriteBase / 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).*) $1 [L] RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L] RewriteRule . index.php [L] # END WordPress
Any body have any ideas? Any help provided would be much appreciated. Thanks!
- The topic ‘Installed multisite, now links with "www" in them don't work’ is closed to new replies.