Support » Networking WordPress » www and non-www domains

  • Hi, I successfully installed multisite for WP3 with directories. Now I added a 2nd site but only the non-www version (skilebanon.ru) resolves correctly, where the http://www.skilebanon.ru version resolves to the network website. I need both to resolve to the same website, and then I need to create a rewrite rule to redirect the non-www to the www.

    My setup:

    – A-Records for *.skilebanon.ru and http://www.skilebanon.ru are pointing to the server’s IP hosted at arvixe.com. I am using a separate DNS.

    – In my cPanel, I used AddOnDomains for skilebanon.ru, pointing to the multisite network root

    – In wp-admin, I added the domain as “skilebanon.ru”. If I add it as http://www.skilebanon.ru, then the www version works but the non-www version resolves elsewhere.

    Arrrgh!!!

    Any hint?
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Don’t use a second site for the non-www address. that should all be handled server-side.

    WordPress only needs to know about one of them. Use the server & htaccess to handle everything else.

    How, in htaccess? What is the code to enter into htaccess to make all non-www go to www for all domains on the multisite?

    If you map domains without the www, they should also redirect the non-www to the same place.

    If you map them with the www, the non-www goes nowhere.

    Andrea, I see this is a common problem. Can you explain in more details what we can do?

    I mapped one domain without the www and a second with www. In the first case I can not open/access the www-domain and in the second I can not open/access the domain without www. Is this a server-side problem?

    benfranklin

    (@benfranklin)

    I also am having this problem where I’d like everything to include the www but when you enter it in without the www in your browser it does to registration and does not redirect.

    Please help!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Plugin Review Team Rep

    benfranklin – Make a new topic and detail how you’ve currently set up the site.

    Did you build it as www or non-www?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘www and non-www domains’ is closed to new replies.