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. Intermediate & Advanced SEO
    4. Can I make 301 redirects on a Windows server (without access to IIS)?

    Can I make 301 redirects on a Windows server (without access to IIS)?

    Intermediate & Advanced SEO
    5 4 10.8k
    • 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.
    • BrianAlpert78
      BrianAlpert78 last edited by

      Hey everyone,

      I've been trying to figure out a way to set up some 301 redirects to handle the broken links left behind after a site restructuring, but I can only ever find information on 2 methods that I can't use (as far as I can tell). The first method is to do some stuff with an htaccess file, but that looks like it only works on Linux-based servers. The method described for Windows servers is generally to install this IIS rewrite/redirect module and run that, but I don't think our web hosting company allows users to log directly into the server, so I wouldn't be able to use the IIS thing.

      Is there any other way to get a 301 redirect set up? And is this uncommon for a web hosting company to do, or do you all just run your sites on Linux-based servers or your own Windows machines?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • irvingw
        irvingw last edited by

        Have you called the hosting company? They may say that you need to switch to a Linux box, and they migrate everything over for you. Or maybe they can help you get your redirects in place on their end.

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

          Try this. It uses the web.config file which is accessible via FTP.

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

            Can I create a web.config file, or is that something that needs to be set up by the hosting company (or at least whoever has access to IIS)? I suppose I could just call the hosting company (as Irving recommended).

            Thanks, guys!

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

              This is a really common problem on shared Windows IIS-based hosting, Brian.

              In addition to the web.config method Oleg mentions, there's another method if it's only for a few specific pages.

              This method involves actually having a "placeholder" page on the server at the old URL. You then add a script to provide the 301 redirect. (Or just replace the content of the origianl page, if it's still on the server.)

              For example:

              On ASP.net you would create the page oldpagename.aspx and its content would be:

              On ASP you'd create the placeholder oldpagename.asp and its content would be:

              <%@ Language=VBScript %>
              <%
              Response.Status="301 Moved Permanently"
              Response.AddHeader "Location", "www.mydomain.com/newpagename.aspx"
              %>

              Obviously this method doesn't scale as easily as the web.config method, but it's generally easier if you're just dealing with a few pages every once in a while.

              Paul

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • Moving site to new domain without access to redirect from old to new. How can I do this with as little loss to SERP results as possible?
                c_estep_tcbguy
                c_estep_tcbguy
                0
                11
                83

              • Can I undo 301 redirects to purchase site
                MickEdwards
                MickEdwards
                0
                3
                115

              • Should You Use 301 Redirects When Switching To A Secure SSL Server?
                Webpresence
                Webpresence
                1
                4
                310

              • 301 Redirect To Another 301 Redirect
                cbielich
                cbielich
                0
                5
                247

              • Time sensitive: HELP! We are having a problem doing a 301 redirect.....what can we do instead?
                PatriotOutfitters81
                PatriotOutfitters81
                0
                7
                148

              • 301 redirect on Windows IIS. HELP!
                TakeshiYoung
                TakeshiYoung
                0
                2
                222

              • Can penalties be passed via 301 redirect?
                paulanth
                paulanth
                1
                31
                18.7k

              • How can I create a redirection on IIS?
                VipinLouka78
                VipinLouka78
                0
                3
                490

              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