How to make non-www to www in htaccess

Step 1: Download .htaccess file from /public_html

Step 2: Open .htaccess in Dreamweaver program

Step 3: Copy the code below and add to the htaccess file

# Force HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://www.xxxx.com/$1 [R=301,L]

**change www.xxxx.com to website that you want to redirect to

Step 4: Back up OLD .htaccess file on server then upload .htaccess file to /public_html

Step 5: Clean browser cache and test

Instruction Gallery

Phuket
More
Addresses
Contact Us
Intouch
newsletter
© 2019 Imarketingonly All rights reserved.
  • We will use the data you submit to fulfil your request. Privacy Policy.

Imarketingonly

The Great Oast, Steep Marsh Petersfield Hampshire GU32 2BN
125/5A Srisoonthorn Road. Cherngtalay District. Thalang Phuket 83110
+66 (0) 76 324184 +66(0) 898 740 040 +44 (0) 1730 895648 +44 (0) 208 1234 164 +44 (0) 7798 554540 Start Price 120 GBP