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

Adding www. prefix to domain

Discussion in 'Plesk 11.x for Linux' started by Woody1234, Jul 25, 2012.

  1. Woody1234

    Woody1234 Guest

    0
     
    Hi,

    All new to VPS and Parallels so please be gentle!

    I have transferred one of my wordpress website from a standard hosting package into my VPS hosted with 123-reg. When changing the DNS to point at the server it lost the www. prefix. i.e. http://type-media.co.uk/ I was wondering how I could add it back onto the domain? Is it a A or CNAME record or name servers? Don't have a clue!

    Also, does anyone know any 'beginners' guides for Plesk 11?

    Thanks in advance.

    Kris
     
  2. Jayson

    Jayson Basic Pleskian

    26
    23%
    Joined:
    May 10, 2005
    Messages:
    95
    Likes Received:
    0
  3. Woody1234

    Woody1234 Guest

    0
     
    Thanks Jayson!

    I have that CNAME record in the Plesk DNS setting and also in my 123-reg DNS setting where the domain was bought. Still not working! Any other suggestions?

    Thanks for the manual links!

    Kris
     
  4. Jayson

    Jayson Basic Pleskian

    26
    23%
    Joined:
    May 10, 2005
    Messages:
    95
    Likes Received:
    0
    Hi Kris,

    123-reg is your registrar? Do they point to your dns, or are they your dns?
     
  5. easesd

    easesd New Pleskian

    10
     
    Joined:
    Jan 24, 2013
    Messages:
    2
    Likes Received:
    0
    Another way is (in case you dont use CN records):

    In your FTP root (maybe in public_html) should be a file called .htaccess, then open it and add this code into it (problably after the first line, bofore other rules start) .



    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>


    ( if there is not such file, then create a simple new text file with notepad and upload to the website root directory, and rename it to .htaccess )


    This is 301 (which is permanent redirect), and then after a few weeks the site will be visible with www in Google search engines anymore.
     
Loading...