Support » Networking WordPress » Redirect from non www to www

  • Resolved chs87

    (@chs87)


    Hi! On my multisite I get the well documented forward error “registration closed” with “wp-signup.php?new=example.com” But: Only when I open https://example.com. When I open https://www.example.com (using www) all is good.

    I found serveral examples where poeple have the problem the opposite way.
    So I cant use their code to redirect.

    Do you have any idea? I tried to do so with the pluign redirection but it did not take any action.

    Thx
    chs

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    The principal site and home URL options should include the www if that’s what you want to redirect to. They are not easily accessible in multisite. I believe you can get to them with /wp-admin/options.php. Search for “home” and “siteurl”.

    Do the redirect in .htaccess with something like:

    RewriteCond %{HTTP_HOST} ^example.com$ [NC]
    RewriteRule (.*) https://www.example.com/$1 [R=301,L]
    Thread Starter chs87

    (@chs87)

    works! i put it in the wrong line. but now its working! thx

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.