WordPress Multisite Network Admin URL
-
We are running a client’s website which is set up in such a way that it does not allow its URLs to run correctly without www in the front.
It seems that when you log into WordPress Admin, the Network Admin links all have non-www links by default. Is there a way to change this permanently?
We’ve gone and updated .htacess to force a 301 redirect to the www version of the site a such:
RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.com [NC] RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]
This corrects the Network Admin links and they work fine, but it seems doing any specific actions within do NOT work. For example, trying to add a new user to the system causes a failure. In taking a look at the source code, I noticed that the Add User form (ex: https://www.domain.com/wp-admin/network/user-new.php) uses the following code:
<form action=”https://domain.com/wp-admin/network/user-new.php?action=add-user” id=”adduser” method=”post”>
Where I can force WordPress to render this code so that it uses www in front of the URL for the form action?
- The topic ‘WordPress Multisite Network Admin URL’ is closed to new replies.