URL redirects breaking functionality.
-
My problem is at: “automaticallynow.com” for some reason all “https://www.” links are being redirected to non-www urls (just “https://”) and they don’t necessarily go to the right pages. For example: This page is the correct one
https://automaticallynow.com/make-money-online/go/mmo-list-opt-in/
but if you add www. to it it redirects to the home page.This has been happening since I setup the multisite network. It’s destroying my ability to use things even though they are “multisite” compatible like WP Lading Pages plugin. The problem exists even when NO PLUGINS are active. I have also tried switching between the annual default “twenty” themes with no improvement.
Note the WordPress installation is with in the /make-money-online/ directory.
I spoke with my hosting support. We didn’t see anything in the .htaccess file to cause this, but I am not .htaccess literate.
Contents of the WP install .htaccess file:
# BEGIN WordPress
RewriteEngine On
RewriteBase /make-money-online/
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]# END WordPress
Inside my multisite administration the URL’s are listed in a few places. On the main site in permalinks they all look like this: https://automaticallynow.com/make-money-online/, no WWW.
When I edit the site via “network admin” it shows:
“Siteurl https://automaticallynow.com/make-money-online” and this is not showing any ability to edit that.Also when setting up the multisite network, the setup instructions had me do this:
“Add the following to your wp-config.php file in /home3/imuaaloh/public_html/automaticallynow/make-money-online/ above the line reading /* Thata??s all, stop editing! Happy blogging. */:
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘automaticallynow.com’);
define(‘PATH_CURRENT_SITE’, ‘/make-money-online/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);
“
I’m told that “WordPress can be installed with or without the https://www.’s it looks like this one was installed without them. However, the hosting account is set up to have the site resolve to the same page when the domain is typed in with or without the www’s”. But if that was the cause then this pagehttps://www.automaticallynow.com/make-money-online/go/mmo-list-opt-in/
would be redirecting to this page https://automaticallynow.com/make-money-online/go/mmo-list-opt-in/ NOT to the main sites home page https://automaticallynow.com/make-money-online/.The pattern persists on other links and test pages.
# Commenting out ” RewriteBase /make-money-online/ ” from the .htaccess file did not seem to change anything.Removing the .htaccess file resulted in all pages having Bluehosts 404 message. This is predictable since wordpress multisite doesn’t know what to do without those .htaccess contents. But when we took out the file the redirect did stop and the 404 errors were for the exact URL including “WWW.”
Still not sure if it is .htacess or WP network causing the redirect. Blue host chat support was unable to find anything in the .htaccess to cause it. Which would mean that it must be something about using the wordpress multisite setup.
Additional Notes:
A redirect detector tells me its a 302 temporary redirect when using a URL OTHER than the home page. When usinging https://www.mydomain.com/homepage/ it becomes a 301 permanant redirect. Not sure if that factors in here of not.I don’t mind URLs like
https://www.automaticallynow.com/make-money-online/go/mmo-list-opt-in/
being redirected to thir non-WWW versions, but having them redirected to mydomain.com/homepage/ (https://www.automaticallynow.com/make-money-online/) is messing things up. Can you help me determine the cause of this problem?
- The topic ‘URL redirects breaking functionality.’ is closed to new replies.