Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've noticed recently that Google and a number of other SEO tools are a little confused about where my site is located. They seem to be unsure about whether it's www. or non www. SEO Moze's Site Explorer tool is unsure and so is Google's webmaster's tools.

An example of what SEO Moz Suggests. http://imgur.com/a/NNs58

I've tooled around quite a bit with my WordPress installation and my web.config file trying to find the perfect configuration. Though it seems as though I'm not quite there.

Any help and advice would be appreciated.

http://pastebin.com/NwTcW5cR

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

I would use this module in IIS. The tutorial here is very straight forward to follow.

Here's a sample rule that redirects traffic from sites/sitename/ to my new website. I would create a site that listens on say http://sitename.com and redirects it to your active site on http://www.sitename.com.

<rewrite>
<rules>
<rule name="Redirect to new site" stopProcessing="true">
<match url="sites/sitename/" />
<action type="Redirect" url="http://www.newsite/sites/sitename/default.aspx" />
</rule>
</rules>
</rewrite>
share|improve this answer
    
I posted a copy of my web.config file and had been using URL rewrite when I wrote this post. It seems as though I'm pretty close. What do you think? –  Zach Shallbetter Jul 28 '11 at 17:25
    
I'm not sure which site your trying to redirect. I've added the rule I use to the answer. –  dkwiebe Aug 5 '11 at 0:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.