Setting Up 301 Redirects in IIS 6.0


Published on May 20th, 2009
8 Comments

OK, this is kinda geekly but important. Did you know that search engines will catalog mydomain.com and www.mydomain.com essentially as two different websites! Strange but true. And this is not a good thing for your SEO performance.

WARNING: The rest of this article is pretty geeky. Read on at your own risk!

When you have links back to your site from other sites, search engine search results and other places you cannot always control what URL people are using to get to our site. The search engines will index based on the total URL not just the top-level domain — meaning they catalog mydomain.com and www.mydomain.com separately.

In effect, this can split your SEO results into two buckets, diluting your ranking in the search engines.

One way to deal with this is at the Web server level by creating something called a 301 Redirect (for more detail on this click here). This is fairly easy to do on a Linux/Apache server by configuring the .htaccess file for the site. Lots of instructions exist on the Web for doing this.

Seting Up 301 Redirects in IIS for Existing Websites

Our company has both Linux and Windows web servers so we have to do this in both environments.

Unfortunately, doing this in IIS is a bit more complex than editing a configuration file. The outline below is written for someone who has experience administering IIS on a Windows web server. I am assuming here a certain level of IIS knowledge and have not included basic “how does IIS work” details.

I’ve worked out a process for setting up a 301 redirect for a production site that already exists under IIS.  Here you go:

If you’ve made it this far without falling asleep you probably know something about IIS!

I did a bunch of research on the web on this issue but did not find the simple answer as above. It was probably out there somewhere, but I did not run across it. So I decided to post this in hopes of saving others the hassle I had.

What is the $S$Q For?

As noted above this is “IIS code.” It solves a particular problem. If you don’t have this code at the end of the URL you are redirecting to, the redirect will just bring up the homepage of the domain its being directed to.

So let’s say you’ve got some legacy HTML pages with image and other links in which the URL being used in the HTML uses the domain that is now being redirected. Here’s an example of what I mean:

Legacy URL: http://mydomain.com/images/mybanner.jpg.

If you’ve set up a redirect for ‘mydomain.com’ and not used the IIS code as shown above, this URL will kick to to www.mydomain.com and your image will not load!

The solution is to put the IIS code at the end of the domain being redirected to exactly as shown above.

Video Tutorial

A few days after I wrote this post I came across a great video tutorial that shows exactly how to do this using screen shots of IIS. Check it out here: IIS tutorial video.

OK, that’s it. Enjoy!


8 Comments

Comments

8 Responses to “Setting Up 301 Redirects in IIS 6.0”

  1. alex farguson Says:

    Your blog is so informative

  2. Joel Polster Says:

    Thanks John. Been looking for a step-by-step on this for a little while.

  3. Jason Stanard Says:

    Hey Joel,

    Glad you liked it and if you haven’t already done it, sign up for our RSS Feed, we’ll keep em coming if you’ll keep reading them and finding the information useful.

    Best,

    Jason

  4. Avo Says:

    Very nice information. Thanks for this.

  5. Kelly Brown Says:

    The article is usefull for me. I’ll be coming back to your blog.

  6. lucinda8708 Says:

    Very useful info.. Will come back.

  7. Mason Jardsen Says:

    Seriously? Anyone familiar with IIS already knows how to do this. Anyone who doesn’t should not be administering a server.

  8. admin Says:

    In a perfect world I would totally agree with you. Perhaps you’ve not worked with small businesses, which form our main customer base. They often cannot afford full-service hosting or host in-house. There are a lot of people out there who find themselves managing Windows Servers with IIS who are not well trained on all the functions of IIS. – John

Leave a Reply

Do NOT fill this !

  • mac server computer consulting install macintosh
  • razer diamondback acid green mouse
  • copper falls mt
  • what is cd replication and dvd
  • commercial bathroom paper towel dispenser
  • business investing online plan
  • sedona airport htm
  • natural toothpaste
  • create online invitations
  • triumph motorcycle financing calculate
  • tucson classified personal
  • very large kilt hose
  • tony stewart sweatshirts and hoodies
  • trailer refrigeration parts receiver dryer
  • mexican terracotta tiles
  • beer holder koozies
  • stearns life vests at bart's
  • brooks addiction lady shoes
  • razer driver no other mouse working
  • fujinon techno-stabi high power image-stabilized binoculars
  • jboss jdbc driver sql server
  • local stores summer sausage seasoning
  • vaseline hair oil products
  • nasdaq 100 tennis tv schedule
  • usb flash memory pen drive
  • forex broker straddle strangle meta trader
  • cheap refurbished notebooks
  • spiritual retreat centers for couples
  • used ice skate sharpening machine
  • everlast boxing gloves for nintendo wii
  • maytag atlantis no heat
  • inclusive discount travel packages
  • 2005 acura tsx replacement headliner
  • tile store tinley park il
  • scott motorcycle goggles discount
  • mac spoofing linksys wrt54g
  • electronics shop hamilton bermuda
  • expander shower curtain rods
  • extend taskbar along multiple screens
  • communion dresses strasburg
  • weight loss surgery cigna insurance texas
  • tucson newspaper classified bulldogs
  • bench press routine workout
  • phillips stentor pacs system
  • cleveland steam cleaning commercial and industrial
  • best multi monitor software
  • bird hanging lanterns candle holders
  • laser tag torrance hawthorne
  • fencing metal
  • cure dry cracked feet
  • advantage billing software
  • quad bike wellington nz
  • french tipped pedicures
  • crackers and snack food
  • car covers in arizona
  • avon tires venom
  • golf bag water cooler
  • greyhound buses from vancouver to seattle
  • after market scooter wheels
  • comfortable womens business shoes
  • honeymoon places beaches
  • quad bikes inports
  • free classified ads tucson
  • walmart and nameplate necklaces
  • best face firming lift
  • professional skate blade sharpening montreal
  • installing firewalls in linux
  • furnace cleaning brushes
  • denny klein hho
  • home burglar alarms bay area
  • cat repellent pipe tobacco
  • samsung syncmaster sm226bw
  • clark travel soft shoes
  • netgear wgt624 software downloads
  • bathroom storage towels hotel
  • mexican melamine plates
  • firefox reports to google browser
  • replacement tanning bulbs
  • cheap discounted bulk dried foods
  • adobe connect and windows vista
  • antivirus spyware software reviews vista
  • atlantic city caesers palace deals
  • love tarot card free reading
  • outdoor fans consumer ratings
  • free halloween desktop wallpapers
  • pea coats belted
  • healthy diet menu for a week
  • cars sports wallpaper
  • razer laser gaming mouse review
  • comercial baking pans
  • medical scheduling software
  • sd memory chips
  • crystal peace sign jewelry
  • website in netherlands selling children's shoes
  • mosaic tile mexican floor patterns spanish
  • oil sprayer for coating chips
  • curves gym franchise information
  • hubcaps used central ohio
  • pot filler placement
  • camping equipment solar lights
  • dog costumes outfits
  • prom tuxedos in florida
  • hd blue ray
  • maxx showers tubs
  • 1967 skip bo
  • oneida stainless steel flatware satinique
  • best potty training method
  • baby beats doppler