Forums

www and non-www domains (7 posts)

  1. esk1mox
    Member
    Posted 1 year ago #

    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

  2. Andrea_r
    team pirate
    Posted 1 year ago #

    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.

  3. eliteventurellc
    Member
    Posted 1 year ago #

    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?

  4. Andrea_r
    team pirate
    Posted 1 year ago #

    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.

  5. iuriem
    Member
    Posted 1 year ago #

    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?

  6. benfranklin
    Member
    Posted 1 year ago #

    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!

  7. benfranklin - Make a new topic and detail how you've currently set up the site.

    Did you build it as www or non-www?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags