WP Multisite (subdirectory) redirect problem
-
If I try to access another site without putting the “www.” in front of the main domain, it redirects to the root install.
https://www.mysite.com – works
https://www.mysite.com/subdirectory – works
https://mysite.com – redirects to https://www.mysite.com which is fine
https://mysite.com/subdirectory – redirects to https://www.mysite.comI think the problem has something to do with this line in my wp-config file:
define( ‘DOMAIN_CURRENT_SITE’, ‘www.mysite.com’ );Should it not include the “www.”? What should I do to fix it?
If I just remove it in the wp-config file, this is what I get:
https://www.mysite.com – works
https://www.mysite.com/subdirectory – works
https://mysite.com – “Error establishing database connection”
https://mysite.com/subdirectory – “Error establishing database connection”
- The topic ‘WP Multisite (subdirectory) redirect problem’ is closed to new replies.