Portal Home > Knowledgebase > General & Tech > Forwarding www.yourdomain.com to yourdomain.com


Forwarding www.yourdomain.com to yourdomain.com




 

Add following in .htaccess file following:

Options +FollowSymLinks 
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^yourdomain\.com
RewriteRule (.*) http://yourdomain.com/$1 [R=301,L]

 

 

Replace [yourdomain] and  [com] to your real domain and extension in line 5 and 6.

What's the advantage of merging those two URLs?

It's good for pagerank !!! (It will not split visitors.)

 

 

 

 

 

 

 

 



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
What is Softaculous? (Views: 1191)
How to install Wordpress (Views: 1264)