Hey all members, Right now I am fixing the non-www to www url. My site is on IIS7 server. Anybody knows how can I fix my non-www to www url. Thanks all
Google is your friend. No doubt that with a quick search you'd get an answer! However yes, a redirect is all you really need. This link should help.
I've not much experience with Magento, however is it set up as non-www in the Magento script settings/database? Sometimes all it takes is changing it from non-www to www in Magento itself to make the change you want.
@Klarksen, it's not a setting in Wordpress. What the OP needs is a 301-redirect to the preferred domain (either www or non-www). There's an article on Google Webmaster Tools that talks about setting your preferred version and suggests at the end that you use a 301-redirect to your preferred version of the domain: https://support.google.com/webmasters/answer/44231?hl=en
Gorrillamcd is right Klarksen. It is not setting with WordPress. I think I have to go with 301 as all other suggest me same. Thank you guys.
I am facing this problem in WordPress. My site is content Managment System and it is build in WordPress not Magento.
Since I've never used IIS7 before, I googled your problem and it's a fairly simple fix. @competent123 had the right idea with URL Rewrite. I found a tutorial that gives you both ways to make the redirect, using URL Rewrite or manually editing your web.config or applicationHost.config. Here's the link: http://weblogs.asp.net/owscott/archive/2009/11/27/iis-url-rewrite-rewriting-non-www-to-www.aspx If you like my answer, could you mark it as solved please. Also, check out @competent123's link above, as it has some other uses for URL Rewrite that you might find useful.
If your website hosted on windows hosting (IIS7 server) you can try .htaccess to use 301 Redirection.