undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

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

  1. Home
  2. SEO Tactics
  3. Technical SEO
  4. Best & easiest way to 301 redirect on IIS

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Best & easiest way to 301 redirect on IIS

Technical SEO
4
13
3.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • 2MSens
    2MSens last edited by Feb 26, 2014, 7:53 AM

    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
    • 2MSens
      2MSens @MichaelC-15022 last edited by Mar 14, 2014, 6:52 AM Mar 14, 2014, 6:52 AM

      Thanks a lot for your answer 🙂

      1 Reply Last reply Reply Quote 0
      • MichaelC-15022
        MichaelC-15022 last edited by Mar 14, 2014, 6:52 AM Mar 7, 2014, 3:27 PM

        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 Mar 14, 2014, 6:52 AM Reply Quote 1
        • 2MSens
          2MSens last edited by Mar 7, 2014, 9:15 AM Mar 7, 2014, 9:15 AM

          Any IIS expert around?.. 😃

          1 Reply Last reply Reply Quote 0
          • topic:timeago_earlier,8 days
          • Andy.Drinkwater
            Andy.Drinkwater @2MSens last edited by Feb 27, 2014, 9:33 AM Feb 27, 2014, 9:33 AM

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

            1 Reply Last reply Reply Quote 1
            • 2MSens
              2MSens @Andy.Drinkwater last edited by Feb 27, 2014, 9:32 AM Feb 27, 2014, 9:32 AM

              there is no .htaccess on IIS servers 😉

              Andy.Drinkwater 1 Reply Last reply Feb 27, 2014, 9:33 AM Reply Quote 0
              • 2MSens
                2MSens @vmialik last edited by Feb 27, 2014, 9:31 AM Feb 27, 2014, 9:31 AM

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

                1 Reply Last reply Reply Quote 0
                • Andy.Drinkwater
                  Andy.Drinkwater @vmialik last edited by Feb 27, 2014, 8:24 AM Feb 27, 2014, 8:24 AM

                  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 Feb 27, 2014, 9:32 AM Reply Quote 0
                  • vmialik
                    vmialik @2MSens last edited by Feb 27, 2014, 7:09 AM Feb 27, 2014, 7:09 AM

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

                    Andy.Drinkwater 2MSens 2 Replies Last reply Feb 27, 2014, 9:31 AM Reply Quote 1
                    • 2MSens
                      2MSens @vmialik last edited by Feb 27, 2014, 6:29 AM Feb 27, 2014, 6:29 AM

                      Hi Vadim,

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

                      vmialik 1 Reply Last reply Feb 27, 2014, 7:09 AM Reply Quote 0
                      • 2MSens
                        2MSens @Andy.Drinkwater last edited by Feb 27, 2014, 6:29 AM Feb 27, 2014, 6:29 AM

                        Hi Andy,

                        thanks, it works for IIS servers too?

                        • Benoit.
                        1 Reply Last reply Reply Quote 0
                        • vmialik
                          vmialik last edited by Feb 26, 2014, 8:10 AM Feb 26, 2014, 8:10 AM

                          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 Feb 27, 2014, 6:29 AM Reply Quote 0
                          • Andy.Drinkwater
                            Andy.Drinkwater last edited by Feb 26, 2014, 7:59 AM Feb 26, 2014, 7:59 AM

                            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 Feb 27, 2014, 6:29 AM Reply Quote 0
                            • 1 / 1
                            1 out of 13
                            • First post
                              1/13
                              Last post

                            Got a burning SEO question?

                            Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                            Start my free trial


                            Browse Questions

                            Explore more categories

                            • Moz Tools

                              Chat with the community about the Moz tools.

                            • SEO Tactics

                              Discuss the SEO process with fellow marketers

                            • Community

                              Discuss industry events, jobs, and news!

                            • Digital Marketing

                              Chat about tactics outside of SEO

                            • Research & Trends

                              Dive into research and trends in the search industry.

                            • Support

                              Connect on product support and feature requests.

                            • See all categories

                            Related Questions

                            • davidvogel

                              Best redirect destination for 18k highly-linked pages

                              redirect redirect chain technical seo 301 redirects

                              Technical SEO question regarding redirects; I appreciate any insights on best way to handle. Situation: We're decommissioning several major content sections on a website, comprising ~18k webpages. This is a well established site (10+ years) and many of the pages within these sections have high-quality inbound links from .orgs and .edus. Challenge: We're trying to determine the best place to redirect these 18k pages. For user experience, we believe best option is the homepage, which has a statement about the changes to the site and links to the most important remaining sections of the site. It's also the most important page on site, so the bolster of 301 redirected links doesn't seem bad. However, someone on our team is concerned that that many new redirected pages and links going to our homepage will trigger a negative SEO flag for the homepage, and recommends instead that they all go to our custom 404 page (which also includes links to important remaining sections). What's the right approach here to preserve remaining SEO value of these soon-to-be-redirected pages without triggering Google penalties?

                              Technical SEO | Nov 18, 2024, 10:15 AM | davidvogel
                              0
                            • HeroDesignStudio

                              301 Redirects, Sitemaps and Indexing - How to hide redirected urls from search engines?

                              We have several pages in our site like this one, http://www.spectralink.com/solutions, which redirect to deeper page, http://www.spectralink.com/solutions/work-smarter-not-harder. Both urls are listed in the sitemap and both pages are being indexed. Should we remove those redirecting pages from the site map? Should we prevent the redirecting url from being indexed? If so, what's the best way to do that?

                              Technical SEO | Aug 11, 2016, 8:57 AM | HeroDesignStudio
                              0
                            • wcbuckner

                              Best way to noindex long dynamic urls?

                              I just got a Mozcrawl back and see lots of errors for overly dynamic urls. The site is a villa rental site that gives users the ability to search by bedroom, amenities, price, etc, so I'm wondering what the best way to keep these types of dynamically generated pages with urls like /property-search-page/?location=any&status=any&type=any&bedrooms=9&bathrooms=any&min-price=any&max-price=any from indexing. Any assistance will be greatly appreciated : )

                              Technical SEO | Jan 29, 2014, 2:46 PM | wcbuckner
                              0
                            • categorycode

                              What is the best way to deal with an event calendar

                              I have an event calendar that has multiple repeating items into the future. They are classes that typically all have the same titles but will occasionally have different information. I don't know what is the best way to deal with them and am open to suggestions. Currently Moz anayltics is showing multiple errors (duplicate page titles, descriptions and overly dynamic urls). I'm assuming that it's showing duplicate elements way into the future. I thought of having the calendar no followed at all but the content for the classes seems valuable. Thanks,

                              Technical SEO | Dec 26, 2013, 6:57 PM | categorycode
                              0
                            • JeanYates

                              Delete 301 redirected pages from server after redirect is in place?

                              Should I remove the redirected old pages from my site after the redirects are in place? Google is hating the redirects and we have tanked. I did over 50 redirects this week, consolidating content and making one great page our of 3-10 pages with very little content per page. But the old pages are still visible to google's bot. Also, I have not put a rel canonical to itself on the new pages. Is that necessary? Thanks! Jean

                              Technical SEO | Jun 7, 2012, 2:04 PM | JeanYates
                              0
                            • Adrian_Kingwell

                              What tools produce a complete list of all URLs for 301 redirects?

                              I am project managing the rebuild of a major corporate website and need to set up 301 redirects from the old pages to the new ones. The problem is that the old site sits on multiple CMS platforms so there is no way I can get a list of pages from the old CMS. Is there a good tool out there that will crawl through all the sites and produce a nice spreadsheet with all the URLs on it? Somebody mentioned Xenu but I have never used it. Any recommendations? Thanks -Adrian

                              Technical SEO | Feb 24, 2012, 8:34 AM | Adrian_Kingwell
                              0
                            • Kotkov

                              302 or 301 redirect to https ?

                              I am redirecting whole site to https. Is there a difference between 302 or 301 redirect for seo? Site never been indexed. Planning to do that with .htaccess command RewriteCond %{HTTPS} !=on
                              RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L] There are plenty of ways http://www.askapache.com/htaccess/ssl-example-usage-in-htaccess.html Which way would be the best? Thanks is advance

                              Technical SEO | Feb 19, 2012, 4:19 AM | Kotkov
                              0
                            • Donaab

                              How best to redirect URL from expired classified ads?

                              We have problem because our content are classifieds. Every ad expired after one or two mounts and then ad becomes inactive and we keep his page for one mount latter like a same page but we ad a notice that ad is inactive. After that we delete the ad and his page but need to redirect that URL to search results page which contains similar ads because we don't want to lose the traffic form that pages. How is the best way to redirect ad URL? Our thinking was to redirect internal without 301 redirection because the httacces file will be very big after a while  and we are thinking to try a canonicalization because we don't want engine to think that we have to much duplicate content.

                              Technical SEO | Jul 7, 2011, 9:18 AM | Donaab
                              0

                            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
                            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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                            • Accessibility
                            • Terms of Use
                            • Privacy

                            Looks like your connection to Moz was lost, please wait while we try to reconnect.