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.
    • 2MSens
      2MSens last edited by

      Hi all,

      What is the best and easiest way to 301 redirect URLs on IIS server?

      I got access to the FTP and WordPress back office, but no access to the server admin.

      Is there an easy way to create 301 redirect without having to always annoy the tech in charge of the server?

      Thanks!

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

        Absolutely - Install this plugin: http://wordpress.org/plugins/simple-301-redirects/

        I use this on a couple of my own sites and it works a treat.

        -Andy

        2MSens 1 Reply Last reply Reply Quote 0
        • 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
                              • Redirection loop. Best way to resolve...
                                Daren-WebSupportLab
                                Daren-WebSupportLab
                                0
                                3
                                120

                              • 301 Redirect Best Practices
                                IceIcebaby
                                IceIcebaby
                                0
                                6
                                1.9k

                              • Best Place to Redirect 301 to?
                                billhartzer
                                billhartzer
                                1
                                6
                                131

                              • Redirect a 301 Redirect
                                RedCaffeine
                                RedCaffeine
                                0
                                5
                                98

                              • Product Level 301 Redirects Best Practice
                                Bucktown
                                Bucktown
                                0
                                3
                                232

                              • I'm redesigning a website which will have a new URL format. What's the best way to redirect all the old URLs to the new ones? Is there an automated, fast way to do this?
                                GregFindley.co.uk
                                GregFindley.co.uk
                                0
                                2
                                303

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

                              • 301 Redirect & re-use
                                mediabase
                                mediabase
                                0
                                3
                                837

                              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