redirect www to non-www

rekha3dhe

New Member
Hello, i am new to this forum, and i am very satisfied with the answers of people who have great experience in website optimization.

I have a question.

I am creating websites for me and or my friends with joomla, and i have enough experience with it.
But while surfing the net, i noticed that the most part of the websites have redirection from www mydomain.com to mydomain.com or vise-versa, and i realized that it is done in order not to have dublicated content for Google, so i wonder how to set my websites to have that feature. for example i have a website www mardik.am/gev/ and i want it to be automatically redirected to mardik.am/gev/


Please help me )) This should help you:

http://www.webmasterworld.com/apache/3223535.htm

See the 2nd post, the member gives various options for redirects to use in htaccess. Thanks a lot, it helped me ))))
Thanks for quick answer!!!! Same problem is going on my website, my site is open with and without "www." and cached URL is without "www." but after read one article in Google blog i come to know that, this is not a big issue. Now the domain with or without "www." is consider a single domain. So now there is no different between with and without "www." If you already have a file named .htaccess on your Website you can add to it. If not, create one. then the following steps Add either of the following rules and save in its place. finally Replace yourdomain.com with your actual domain name.

Redirect www to non-www:
Code: RewriteEngine OnRewriteBase /RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]Redirect non-www to www:
Code: RewriteEngine OnRewriteBase /RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301] You have to set a permanent redirection ( 301 redirect ) from all unwanted URLs to desired one. It's the permanent solution for this problem.. The 301 redirect is the best solution for this issue which is called "Canonical Issue". Google was declared one thing regarding this issue, which is now the domain with "www." and without "www." is considered as a single website.
So, there is no need to worry about this issue.
Now as per the Google domain name is more important. hi,
Even though the both www and non-www domain are pointing to the same site, it will hurt your SERP. Quote: Originally Posted by enkonversations Google was declared one thing regarding this issue, which is now the domain with "www." and without "www." is considered as a single website.
So, there is no need to worry about this issue.
Now as per the Google domain name is more important. If you are referrring to the screen in Google Webmaster Tools where you can designate which version of the site to list, that only works for Google, not the "other" search bots.
Quote: Originally Posted by devisrimari hi,
Even though the both www and non-www domain are pointing to the same site, it will hurt your SERP. Can you please explain this. If you're going to choose between
 
Back
Top