Redirect non www to www Using .htaccess

Prev Tutorial Next Tutorial

How to Redirect Old Domain to New Domain Using .htaccess File

This is helpful when you want to change your domain name without lose your website traffic from search engine.


RewriteEngine On
RewriteCond %{HTTP_HOST} ^$ [NC,OR]
RewriteCond %{HTTP_HOST} ^$ [NC]
RewriteRule (.*)$$1 [R=301,L]

Prev Tutorial Next Tutorial

Google Advertisements
Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain,, @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: WhatsApp no. 8882538826

Yahoo Advertisements