[Plugin: Root Relative URLs] www redirection is broken by this plugin
-
Hi, I’ve been using the Root Relative URLs plugin on my new WP installation, and it’s exactly what I’ve been looking for.
One thing I noticed, though, after I installed it, is that WP will no longer automatically redirect https://mydomain.com into https://www.mydomain.com when I type the former into my browser.
On the General Settings tab I have both the WordPress and Site Address URLs set to https://www.mydomain.com. When this plugin is disabled or uninstalled, and someone types https://mydomain.com into their browser (without www), the URL will automagically change to https://www.mydomain.com as the page loads. This is what I want to happen. Also for the sake of SEO which, I’ve read, works better this way.
But when the plugin is enabled, this automatic redirection doesn’t work anymore. Therefore my site is available at both URLs, which is not good.
I had initially added the ‘WP_HOME’ and ‘WP_SITEURL’ definitions to my wp-config.php as instructed on the installation page. I then deleted them again, but doing so hasn’t fixed the above issue.
Is there any way I can force WP to continue doing this www redirection even when the plugin is enabled? Perhaps something else I can add to wp-config.php?
Better yet, it would be great if the plugin could be modified to offer this as an option, so that the administrator can turn on or off this functionality according to his needs.
Thanks!
https://www.ads-software.com/extend/plugins/root-relative-urls/
- The topic ‘[Plugin: Root Relative URLs] www redirection is broken by this plugin’ is closed to new replies.