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
-
Site redesign - 301 Redirects
I've just overhauled a website, leaving lots of former posts in the dust. I've set up a 404 redirect to the home page so that if anyone goes to one of those old pages they land on the home page instead of a dead 404. But, there's a couple urls from the old site I'd prefer to redirect to similar pages. These urls have forward slashes and I don't know how to get the slashes in when I copy it over to the new site. This is probably something easy, but I'm baffled. This www.lawbarron.com/personal-injury/whip-its-nitrous-oxide/ becomes this when I copy it www.lawbarron.com/personal-injury-whip-its-nitrous-oxide Can someone help me out?
Web Design | | julie-getonthemap0 -
Https Implementation - Weird Redirection After Putting 's' in http://
Hi Mozers, I have come across some websites with their https version going to a totally different website. For example, http://www.samplesite1.com will load fine but when the protocol is changed to https (https://www.samplesite1.com) it will go to a total different domain say, https://www.samplesite2.com How does this happen, in technical sense? In the warning from browser, it says the the security certificate is from the other website but I would like to understand how this happens and how it impacts SEO. I seem to be not able to understand the relationship of this error and SEO impact. Thanks in advance for your response. Malika
Web Design | | Malika10 -
How long should an old site redirecting to a new site remain activated on a server?
Once I switch a site to a new domain (with links to corresponding/relative pages), will I have to keep the old site live forever for those links to work, or how long should I wait before I inactivate the old site on our server?
Web Design | | jwanner0 -
Help with Schema.org on Ecommerce Products
I’m looking for ways of using schema.org with products that have pricing options. There appear to be two main problems 1) Whilst colour, width, height and depth are all catered for, size appears to be missing – how can we mark up products that are available in sizes that aren’t necessarily covered by width/height/depth (e.g. shoe size). Also, what if the product is available in different finishes – technically, these could not properly be described as colours so how could we mark them up? 2) There doesn’t seem to be any particularly good way of marking up pricing options that are displayed on the same product detail page. For e.g. if a pricing option table is used like this: | ID | Colour | Price 001-red | Red | £3.99 001-green | Green | £4.49 001-blue | Blue | £4.99 | I can mark up each row as an offer, and give each offer a price and sku or mpn, but then I can’t use itemprop=”color” to describe exactly what the option is. Would I just use itemprop=”name” in this case and abandon color altogether (even though it’s technically supposed to be describing the colour of the product and not the name of the offer)? I suppose another way I could approach it would be to mark up each row as an individual product, and assign each one an offer with the details as described above but then the containing page would effectively look like a separate product – which it isn’t. Any help or advice on this would be very much appreciated
Web Design | | paulbaguley0 -
HELP! IE secure page display issue on new live site
For some reason IE 7, 8, & 9 do not display the following page: https://www.jwsuretybonds.com/protools.htm All they show is the Norton seal. It shows properly in all other browsers without issue (including IE 10+), but the earlier versions flash the page for a split second, then hides everything. Can someone shed some light on this? This is a new live site we just launched minutes ago and these browsers account for 12% of our overall traffic. UGH I hate you microsoft!!! Thanks all 🙂
Web Design | | TheDude0 -
Converting to WP - Should I add .html or 301?
Moving my site to WP and the old url structure pages end in ".html". I have seen there are plugins that allow you to add .html to the WP pages to preserve links. I am hosting on Synthesis and they do not support htaccess, although you can submit 301 re-directs through the help ticket system. My question is what is the best way to proceed? I have read that 301s "leak" some link juice, but I sure do like those pretty urls. Advice appreciated!
Web Design | | Chris6611 -
Show root domain (that is 301 redirected) in SERP?
Hi, If I have the domain name www.businessname.com.au pointing (using 301 redirect) to a particular page on a business directory site (eg www.bizdirectory.com.au/businessname), is it possible to have the URL www.businessname.com.au displayed in the Google search results rather than the destination page of www.bizdirectory.com.au/businessname? Thanks in advance,
Web Design | | blackrails
Adam0 -
Javascript Redirects
So I have a client who uses a program called test and target by Adobe to test different pages of content for the best layout, design, etc. They use javascript redirects and css hide and show to hide content with div tags. I'm wondering if anyone has experience with test and target or knows about how these hidden div tags and javascript redirects will affect my indexing and SEO. I'm hoping for some guidance fairly quickly as well 🙂
Web Design | | CoolSEOnStuff0