301 redirect on Windows IIS. HELP! (Part 2)
-
My webmaster's trying (but struggling) to 301-redirect the non.www version of my site to the www version. He's following these instructions given to me in a response to an SEOMoz Private Question (ah, the good old days!).
So far he's 301-redirected the homepage but seems stuck on how to do the entire site. Any clues on what he should be doing?
-
He seems to have sorted it out now -- touch wood.
Thank you for your replies. -
Yeah and that's how you do it in IIS... Trust me I did this recently.
You create a site, say - domain.com (if you already have www.domain.com)
go into properties of domain.com and set the "A redirection to a URL" tab to www.domain.com, check permanent, and then it will send all requests to domain.com over to www.domain.com
Seriously that's the easiest way to do it I did these exact steps about 2 months ago and our site redirects perfectly, all pages. (setting the canonical version is setting a redirect in this scenario)
-
He's not trying to redirect a file or directory, Jesse, he's trying to create the rewrite rule that will set the canonical version (all www or all non-www) for all pages on the site.
P.
-
Those instructions are correct and should work for the whole site, Jeepster. Are you certain he's implementing them correctly? In particular you need to be absolutely certain that he's selected the Canonical Domain rule template, not a blank rule that he's writing himself.
Also, have you confirmed that the resulting code appears in the site's web.config file as indicated in the tutorial?
If all that's been confirmed, I'd check with your hosting provider to see why there might be issues getting these configs applied to your site. (assuming it's not an unmanaged dedicated or VPS sever.)
Paul
-
I'm not sure about all those fancy instructions in that link there... This is how I would do it, in a nutshell (correct me if I've missed a step as I do not have access to our IIS server at this time to retrace the steps, this is from memory)
-
Open IIS in Explorer and navigate to your site. Right click on the file or folder you wish to redirect and select Properties. (this will allow you to do it per directory, per page, etc)
-
In the file tab, select "A redirection to a URL" - (i may have missed a step here. i also know that depending on which IIS version you are running the location of this changes. I believe this is for IIS 7. Either way there will be an option somewhere in the called "A redirection to a URL")
-
Enter the url to redirect to
-
Determine whether you want to do the optional checkboxes (probably will want to check "A permanent redirection for this resource")
-
Click OK
Hope this helps!
-
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
WordPress redirects are taking too long to navigate: Anyone ever faced this?
Hi community, We are using wordpress website. We have redirected hundreds of URLs from wordpress redirect manager for last 10 years around. Suddenly from last one week, the redirects are taking too long to navigate to the pages; like around 1 minute. Could you anybody face the same issue? Please help me on this. Thanks
Web Design | | vtmoz0 -
I have a site that has a 302 redirect loop on the home page (www.oncologynurseadvisor.com) i
i am trying to do an audit on it using screaming frog and the 302 stops it. My dev team says it is to discourage Non Human Traffic and that the bots will not see it. Is there any way around this or what can I tell the dev team that shows them it is not working as they state.
Web Design | | HayMktVT0 -
Any body can help me to make my web site seo freindly?
any body can help me to make my web site seo freindly? i have not big budget please email me fabric35@hotmail.com
Web Design | | fabric-fabric0 -
No cache meta tags - does it help Google get back and reindex faster?
I saw these meta tags on a site and am trying to figure out their benefit. These meta tags are on the home page, product pages, every page of the site. Will it cause search engine bots to come back and index pages faster? Will it cause slower page loading in browsers if nothing is cached? http-equiv="pragma" content="no-cache"/> http-equiv="cache-control" content="no-cache,no-store,must-revalidate"/> http-equiv="expires" content="0"/>
Web Design | | CFSSEO0 -
Advanced 301 Redirects
Hi all! I'm moving a blog from a subdomain to a folder on my root domain and want to make sure I am properly implementing 301's. Is there a code or method for making specific pages 301 to the corresponding new URL without having to manually 301 each? For example, a current blog may exist at blog.website.com/3-tips-for-selling-your-home and, since we are moving the blog, will now exist at website.com/3-tips-for-selling-your-home. We obviously want to implement 301's to ensure any link equity carries over to the new url. Anyone know how to implement these in scale to without having to set up each manually? Thanks!
Web Design | | RickyShockley0 -
Can someone please help with technical question!
I have noticed that our website tool to get a quote does not work with active scripting disabled is this bad? How many people have this disabled?
Web Design | | BobAnderson0 -
Is it common to have some of error/warning(currency duplicate,redirect, etc...) in most website that rank well?
Hi could any body could give me some idea on 'on page optimisation' Currently in my campaign I have around 3000+ errors, 14,000+ warning, 7000+ notices for the following reasons: Overly-Dynamic URL
Web Design | | LauraHT
Temporary Redirect
Title Element Too Long (> 70 Characters)
Duplicate Page Title
etc... First of all I know these have negative effect on SEO. Now to fix towards those issues it involve lots of works and times. At the same time most of our important keywords/url rank position have not changed over the last 12 months. Does that mean the above has only limited negative effect? I just want to know is it worthy to invest the man/hour/money to clean those issues. As it involves decent development time. Is it common to have some of error/warning in most website that rank well? (e.g. I 've seem may big website have duplicate title/meta-desc on their currency variant page)0 -
Will Switching To a CMS System Help Rankings
I would like to transform our 400 page website to a CMS system. We rank failrly well for most of our keywords and not so much for others. Our website is currently optimized with lots of unique content, but we need to transform to a more professional website with lots of options. Will doing this transformation affect our rankings if Redirects are correct ? Any recommedations for a Easy CMS that is very SEO Friendly?
Web Design | | hfranz0