| Home | Submit Site | Articles | SEO Guide | Free Website Tools | Login | |
|
|
The Secret of Domain OptimizationLets say my website domain name is ongsono.com, we can access that web with www.ongsono.com and also with ongsono.com, both will give same result. but one think you must know that, google serve that domain diffrently. it means ongsono.com not same as www.ongsono.com. how do i know? you can try to search at google with this keyword site:www.ongsono.com and site:ongsono.com, google will give diffrent result.so what should you do is make it same. either you only use ongsono.com or www.ongsono.com. in apache we can use htaccess or configure at httpd.conf. here is the secret If your site can be accessed both with and without the 'www.' prefix, you can use one of the following settings to redirect users to your preferred URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option: To redirect all users to access the site WITH the 'www.' prefix, (http://ongsono.com/... will be redirected to http://www.ongsono.com/...)
RewriteCond %{HTTP_HOST} ^ongsono\.com$ [NC]
RewriteRule ^(.*)$ http://www.ongsono.com/$1 [L,R=301] To redirect all users to access the site WITHOUT the 'www.' prefix, (http://www.ongsono.com/... will be redirected to http://ongsono.com/...)
RewriteCond %{HTTP_HOST} ^www\.ongsono\.com$ [NC]
RewriteRule ^(.*)$ http://ongsono.com/$1 [L,R=301]
More on SEO Optimization
|
Related SEO TipsHeader Optimization Tips The secret of Images Optimization Meta Keywords Tag Optimization
|
|
|