1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

with or without www setting?

Discussion in 'Plesk 11.x for Linux' started by web2010, Jan 13, 2013.

  1. web2010

    web2010 New Pleskian

    16
    60%
    Joined:
    Dec 1, 2010
    Messages:
    10
    Likes Received:
    0
    Where is the checkbox for www or without it now hiding?

    Websites & Domains > Hosting Settings for blahblah.com > General . . . . not there

    Thank you
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Starting from version 10.3.1, the ServerAlias "www.<DOMAIN.TLD>" record is added to the webserver configuration for each domain without depending on its DNS zone content.
    So, www prefix works by default for any new created domain.
     
  3. web2010

    web2010 New Pleskian

    16
    60%
    Joined:
    Dec 1, 2010
    Messages:
    10
    Likes Received:
    0
    The DNS has a CNAME pointing to a shopping cart URL. Example:

    www.website.com. CNAME website.myshopify.com.

    How do I do the same for website.com as well?
     
  4. Sergey L

    Sergey L Golden Pleskian Staff Member

    32
    43%
    Joined:
    Aug 10, 2006
    Messages:
    1,195
    Likes Received:
    30
    Normally you should have a record like
    www.website.com CNAME website.com
    If it has been removed, you can just add it back
     
  5. agungs

    agungs New Pleskian

    10
     
    Joined:
    Dec 10, 2012
    Messages:
    1
    Likes Received:
    0
  6. web2010

    web2010 New Pleskian

    16
    60%
    Joined:
    Dec 1, 2010
    Messages:
    10
    Likes Received:
    0
    Plesk will not allow me to do it and the server techs are telling me the same.

    Error: CNAME DNS zone record cannot coexist with other DNS records in the same zone.

    Here are all the CNAME records:

    *.webmail.blahblah.com. CNAME blahblah.com.
    ftp.blahblah.com. CNAME blahblah.com.
    www.blahblah.com. CNAME blahblah.com.myshopify.com.

    And I am trying to add:

    blahblah.com. CNAME blahblah.com.myshopify.com.
     
    Last edited: Jan 15, 2013
  7. Sergey L

    Sergey L Golden Pleskian Staff Member

    32
    43%
    Joined:
    Aug 10, 2006
    Messages:
    1,195
    Likes Received:
    30
    To my opinion your problem isn't about www prefix. You are simply trying to setup a redirect or alias. The best way would be to setup redirect on "blahblah.com" or make it assigned to the same folder blahblah.com.myshopify.com. The first option would cause URL changed to blahblah.com.myshopify.com, the second option would keep URL preserved.

    Indeed you cannot make "blahblah.com CNAME" in blahblah.com zone since there is already mandatory "blahblah.com A" record for it.
     
  8. web2010

    web2010 New Pleskian

    16
    60%
    Joined:
    Dec 1, 2010
    Messages:
    10
    Likes Received:
    0
    Redirect to www using htaccess redirect

    Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com
    The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^domain.com [nc]
    rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

    Please REPLACE domain.com and www.newdomain.com with your actual domain name.

    Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.
     
Loading...