The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Web Design
    4. 301 redirect on Windows IIS. HELP! (Part 2)

    301 redirect on Windows IIS. HELP! (Part 2)

    Web Design
    6 3 165
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Jeepster
      Jeepster last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • jesse-landry
        jesse-landry last edited by

        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)

        1. 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)

        2. 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")

        3. Enter the url to redirect to

        4. Determine whether you want to do the optional checkboxes (probably will want to check "A permanent redirection for this resource")

        5. Click OK

          Hope this helps!

        ThompsonPaul 1 Reply Last reply Reply Quote 1
        • ThompsonPaul
          ThompsonPaul last edited by

          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

          1 Reply Last reply Reply Quote 1
          • ThompsonPaul
            ThompsonPaul @jesse-landry last edited by

            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.

            jesse-landry 1 Reply Last reply Reply Quote 1
            • jesse-landry
              jesse-landry @ThompsonPaul last edited by

              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)

              1 Reply Last reply Reply Quote 1
              • Jeepster
                Jeepster last edited by

                He seems to have sorted it out now -- touch wood.
                Thank you for your replies.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Site redesign - 301 Redirects
                  julie-getonthemap
                  julie-getonthemap
                  0
                  4
                  187

                • Should I do multiple 301 redirects?
                  nhhernandez
                  nhhernandez
                  0
                  2
                  987

                • 301 htaccess redirect or 301 HTTP DNS Redirect
                  OlegKorneitchouk
                  OlegKorneitchouk
                  0
                  2
                  1.4k

                • Help with redirects
                  Dr-Pete
                  Dr-Pete
                  0
                  4
                  154

                • 404 page in Windows IIS. HELP!
                  Jeepster
                  Jeepster
                  0
                  3
                  284

                • 301 Redirect from Old Domain to New Domain
                  Chris.Menke
                  Chris.Menke
                  0
                  2
                  1.3k

                • What happens if I 301 Redirect my homepage to a different page on site
                  SheffieldMarketing
                  SheffieldMarketing
                  0
                  10
                  364

                • Redirecting 301 Redirects -- Will Search Engines Notice?
                  bemcapaz
                  bemcapaz
                  0
                  3
                  870

                Get started with Moz Pro!

                Unlock the power of advanced SEO tools and data-driven insights.

                Start my free trial
                Products
                • Moz Pro
                • Moz Local
                • Moz API
                • Moz Data
                • STAT
                • Product Updates
                Moz Solutions
                • SMB Solutions
                • Agency Solutions
                • Enterprise Solutions
                • Digital Marketers
                Free SEO Tools
                • Domain Authority Checker
                • Link Explorer
                • Keyword Explorer
                • Competitive Research
                • Brand Authority Checker
                • Local Citation Checker
                • MozBar Extension
                • MozCast
                Resources
                • Blog
                • SEO Learning Center
                • Help Hub
                • Beginner's Guide to SEO
                • How-to Guides
                • Moz Academy
                • API Docs
                About Moz
                • About
                • Team
                • Careers
                • Contact
                Why Moz
                • Case Studies
                • Testimonials
                Get Involved
                • Become an Affiliate
                • MozCon
                • Webinars
                • Practical Marketer Series
                • MozPod
                Connect with us

                Contact the Help team

                Join our newsletter
                Moz logo
                © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy