Support » Multisite » domain is not the same with or without a www ,

domain is not the same with or without a www ,

Viewing 15 replies - 1 through 15 (of 17 total)
  • Since you set up your site with www, I would put this in your wp-config.php file, just below the last MultiSite line:

    define( 'NOBLOGREDIRECT', 'http://www.commentchoisirtv.com/' );

    Wow , you helped me again, and it works like a charm as always , thank you so much

    It took me hours to check all my DNS records and everything, Thank you for your solution , I feel safe and happy when I see your comment under threads.

    No problem 🙂 Normally WordPress is pretty good about knowing that www and non-www are the same site, but all it takes is one weird server config to make it forget. What that line does is say ‘If there’s no blog, just go to the front page.’

    If you don’t have registration open, or if you don’t want to advertise that it’s open when people go to fake subdomains (like dfsdfsdfsdf.domain.com) that’s the easiest fix.

    That’s a great easy fix, the only problem is that it will redirect all pages without www to home page,
    an example :

    which will be redirected to home with out www


    I do not know how to resolve this, Happily the website is under construction

    the interesting thing is that if i copy a simple html file in root like this test file it works with or with out www, which (in my point of view as an amateur) means that DNS has been configured properly and WP configuration is the cause of it



    Try putting this on the top of your htaccess (ABOVE the WP lines)

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^commentchoisirtv.com/$
    RewriteRule ^(.*)$ http://www.commentchoisirtv.com/$1 [R=301]

    I don’t know why WP does that sometimes. Normally if you set up a site as domain.com (NOT http://www.domain.com) it handles it just fine. It’s probably something in your server config.

    I have added that in htaccess, it’s the same, I hate Plesk, may be that’s because of ples DNS config :
    *.commentchoisirtv.com. CNAME commentchoisirtv.com.
    *.webmail.commentchoisirtv.com. CNAME commentchoisirtv.com. / 24 PTR commentchoisirtv.com.
    commentchoisirtv.com. NS ns.commentchoisirtv.com.
    commentchoisirtv.com. A
    commentchoisirtv.com. MX (10) mail.commentchoisirtv.com.
    commentchoisirtv.com. TXT v=spf1 +a +mx -all
    http://ftp.commentchoisirtv.com. CNAME commentchoisirtv.com.
    mail.commentchoisirtv.com. A
    ns.commentchoisirtv.com. A
    salon.commentchoisirtv.com. A
    webmail.commentchoisirtv.com. A
    http://www.commentchoisirtv.com. CNAME commentchoisirtv.com.

    Oh. Plesk. I hate it too.

    You have to add that htaccess and then REMOVE the line from the wp-config.php.

    I don’t think it’s a DNS issue, mind you.

    I have done that, it now like where i was in the first place, every single page with out www is redirected to this url http://www.commentchoisirtv.com/wp-signup.php?new=commentchoisirtv.com


    I did some plesk digging… I THINK this is because Plesk sees your default as being domain.com and NOT http://www.domain.com (that I’m mostly basing off your DNS, which has commentchoisirtv.com as an A record).

    Try this: Add the www version as an A record (like mail.commentchoisirtv.com ) and NOT the CNAME that it is.

    thank you for your time, I have removed the CNAME record and added an A record like you said, I think it will take some time to take effect, Let’s see what happens in two hours, by the way I have already had such a record (the A record you said) in my domain registration panel. may be I should have just deleted the CNAME , I will come back shortly to tell you the results:))

    my domain registration panel is outside plesk, (all domains have to be registered once again in Plesk anyway) I do not know if plesk configurations over rides the domain registration configurations.
    Sorry to bother WordPress precious time and resources for everlasting inconveniances of Plesk:)

    Nah, it’s good to know how all the various things work together 😉

    If it’s not DNS, it’s something IN Plesk that’s overriding it, and I don’t know Plesk enough to guess at it. In Cpanel/Apache it’d be httpd.conf where I’d START looking.

    when trying to reach domain without www I receive this massage in wordpress : the website your trying to reach does not exist and that is the address http://commentchoisirtvcom.www.commentchoisirtv.com

    I am gonna investigate this and I come back soon:)

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘domain is not the same with or without a www ,’ is closed to new replies.