• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Adding www. prefix to domain

W

Woody1234

Guest
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
 
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
 
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.
 
Back
Top