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. Technical SEO Issues
    4. Best & easiest way to 301 redirect on IIS

    Best & easiest way to 301 redirect on IIS

    Technical SEO Issues
    13 4 2.2k
    • 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.
    • vmialik
      vmialik last edited by

      Hi Benoit,

      Yes, Andy is totally on it. Server side redirects are faster, however if you have Wordpress a plugins make it so much easier and convenient.

      Also if you want other powerful features like: 404 error monitoring - captures a log of 404 errors and allows you to easily map these to 301 redirects, and more Try Redirection plugin

      Hope this Helps!

      2MSens 1 Reply Last reply Reply Quote 0
      • 2MSens
        2MSens @Andy.Drinkwater last edited by

        Hi Andy,

        thanks, it works for IIS servers too?

        • Benoit.
        1 Reply Last reply Reply Quote 0
        • 2MSens
          2MSens @vmialik last edited by

          Hi Vadim,

          Thanks for your answer, however it looks that the redirection plugin works only for apache servers.

          vmialik 1 Reply Last reply Reply Quote 0
          • vmialik
            vmialik @2MSens last edited by

            Bummer, I was not aware of that, its such an awesome plugin

            Andy.Drinkwater 2MSens 2 Replies Last reply Reply Quote 1
            • Andy.Drinkwater
              Andy.Drinkwater @vmialik last edited by

              Nor was I.

              If you have FTP access, you might then have to work in the .htaccess file and build the redirects in there.

              -Andy

              2MSens 1 Reply Last reply Reply Quote 0
              • 2MSens
                2MSens @vmialik last edited by

                No problem, I'll have a look for another website 😉 thanks

                1 Reply Last reply Reply Quote 0
                • 2MSens
                  2MSens @Andy.Drinkwater last edited by

                  there is no .htaccess on IIS servers 😉

                  Andy.Drinkwater 1 Reply Last reply Reply Quote 0
                  • Andy.Drinkwater
                    Andy.Drinkwater @2MSens last edited by

                    There - you can see how often I have worked on IIS servers 😉

                    1 Reply Last reply Reply Quote 1
                    • 2MSens
                      2MSens last edited by

                      Any IIS expert around?.. 😃

                      1 Reply Last reply Reply Quote 0
                      • MichaelC-15022
                        MichaelC-15022 last edited by

                        You have two options:

                        1. Set it up in IIS Manager (best option, least overhead for the server, need no coding skills)
                        2. Code it in classic ASP in a global include file that all pages reference before sending content back to the browser.

                        Here's a great article that walks you through the IIS config option.  For this, you need access to IIS Manager:

                        http://www.proworks.com/blog/2010/02/11/adding-a-301-redirect-in-iis-for-individual-pages-with-non-aspx-extensions/

                        Sounds like that option is unavailable to you however.

                        For the other option:  your site probably has a file or two that's included at the start of all web pages.  (If not, you can add it).  In that file, you'll want to check the URL passed in like this:

                        Dim sThisPage                = Request.ServerVariables("SCRIPT_NAME")

                        If (LCase(sThisPage) = "/oldpage.aspx") Then

                        Response.Status            = "301 Moved Permanently"
                                Response.AddHeader        "Location", "http://" & sThisServer & "/newpage.aspx"
                                Response.End
                        End If

                        2MSens 1 Reply Last reply Reply Quote 1
                        • 2MSens
                          2MSens @MichaelC-15022 last edited by

                          Thanks a lot for your answer 🙂

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post
                          • Best way to handle 301 redirects on a business directory
                            0
                            1
                            44

                          • Redirect 301 & Wild Cards
                            RyanPurkey
                            RyanPurkey
                            0
                            4
                            71

                          • How best to fix 301 redirect problems
                            daedriccarl
                            daedriccarl
                            0
                            5
                            346

                          • Which way round to 301 redirect?
                            Christy-Correll
                            Christy-Correll
                            0
                            8
                            128

                          • 301 Redirect Best Practices
                            IceIcebaby
                            IceIcebaby
                            0
                            6
                            1.9k

                          • 301 help, whats the best way
                            glennfriesen
                            glennfriesen
                            0
                            3
                            383

                          • 301 Redirect Domain or 301 Redirect Domain + Interior Pages
                            Room214
                            Room214
                            0
                            7
                            1.1k

                          • IIS Work Around 301 Redirects
                            Hurf
                            Hurf
                            0
                            2
                            886

                          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