Adding www prefix to the front of my domain

Associate
Joined
14 Apr 2011
Posts
996
Location
Essex United Kingdom
I have recently created a photography website http://3xposure.co.uk but would like the address to have the www prefix so it looks more like .

The website is running on wordpress and if I change the web address URL under settings>General it breaks the website so have been going back into the php database to restore this option.

Can anyone please advise. Thankyou
 
Do you have a .htaccess file in your public_html folder with mod_rewrite rules?

It will begin with ReWritecondiiton or something like that.

To change your install from http:// to http://www. you will need to edit the entry in the wordpress database and the rules in this file
 
Ive had a look on the web for the whole of this evening and cannot seem to find the right answer. I did find earlier that i have the option to change from domain.co.uk to www.domain.co.uk in the domain settings but it then throws the wordpress site out
 
Did you follow what i said in my reply, what was the outcome? I host in the region of 500 wordpress installs, this is an easy fix.
 
Best way is to change from wpadmin section of wordpress or edit your .htaccess rule which should give you the result.

below is he rule :

# Redirect non-www to www:
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
 
Back
Top Bottom