• seohunters9

        See all notifications

        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
          • MozCon
          • Webinars, Whitepapers, & Guides
        • Blog
        • Why Moz
          • Digital Marketers
          • Agency Solutions
          • Enterprise Solutions
          • Small Business Solutions
          • 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.

          Let your business shine with Listings AI
          Moz Local

          Let your business shine with Listings AI

          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
          • Digital Marketers

            Simplify SEO tasks to save time and grow your traffic.

          • 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.

          • 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
        • 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. 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
        3425
        Loading More Posts
        • Watching

          Notify me of new replies.
          Show question in unread.

        • Not Watching

          Do not notify me of new replies.
          Show question in unread if category is not ignored.

        • Ignoring

          Do not notify me of new replies.
          Do not show question in unread.

        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as question
        Locked
        This topic has been deleted. Only users with question 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
          • 2MSens
            2MSens @MichaelC-15022 last edited by

            Thanks a lot for your answer 🙂

            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 last edited by

                Any IIS expert around?.. 😃

                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 @Andy.Drinkwater last edited by

                    there is no .htaccess on IIS servers 😉

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

                              Hi Andy,

                              thanks, it works for IIS servers too?

                              • Benoit.
                              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
                                • 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
                                  • 1 / 1
                                  • First post
                                    Last post

                                  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

                                  • Damian_Ed 0

                                    Unsolved Temporary redirect from 302 to 301 for PNG File?

                                    302 temporary riderect 301 http status image issue

                                    #302HTTP #temporaryredirect
                                    Hi everyone, Recently I have faced a crawl issue with my media images on website. For example this page url https://intreface.com/wp-content/uploads/2022/12/Horion-screen-side-2.png has 302 HTTP Status and the recommendation is to change it 301. I have read the article on temporary redirections here:
                                    https://a-moz.groupbuyseo.org/learn/seo/redirection?_ga=2.45324708.1293586627.1702571936-916254120.1702571936
                                    but its not written here how to redirect in my HTML 1 image url not the landing page.
                                    Screenshot 2023-12-15 at 11.02.40.png
                                    I have messaged to MOZ Support but they recommended to go for the MOZ Community!
                                    Screenshot 2023-12-15 at 11.06.02.png Could you assist me wit this issue please? I can reach HTTML of the necessary page and change what I need for permanent redirection but firstly I need to understand how to do that correctly.

                                    Technical SEO | | Damian_Ed 0
                                    0
                                  • GoMentor

                                    Best way to change URL for already ranking pages

                                    Hello. I have a lot of pages that I'm optimising. The ones I'm focusing on right now is already ranking, but the URLs could be better (they don't include the keywords right now). However I'm worried that if I change the URLs they will drop in rankings or have to start over. I would of course set up 301 redirect, but is there more I need to do? What is the best way to change URL for already ranking pages?

                                    Technical SEO | | GoMentor
                                    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 | | HeroDesignStudio
                                    0
                                  • CeeC-Blogger

                                    301 vs 302 & Link Juice

                                    Has any one come across any recent cases of a 302 link passing more link juice than before?

                                    Technical SEO | | CeeC-Blogger
                                    0
                                  • twotd

                                    301 redirect not working

                                    Hi there! I have recently moved a domain that has been indexed by google and setup redirects so that it forwards to the new domain. It seems like the only redirect that actually is working is the canonical and main domain but every other page and or page nested within a folder are not working. Here is an example of some of the redirects. Am I doing this wrong? It seems to be going to the new domain but can't find the actual pages.... RewriteEngine On
                                    RewriteBase /
                                    RewriteCond %{HTTP_HOST} !agoodsweep.com$ [NC]
                                    RewriteRule ^(.*)$ http://agoodsweep.com/$1 [L,R=301]
                                    redirect 301 woodstoveservicerepair.html http://agoodsweep.com/woodstoveservicerepair/
                                    redirect 301 /westchesterchimney.html http://agoodsweep.com/west-chester-chimney/ Thanks in advance for any help!!

                                    Technical SEO | | twotd
                                    0
                                  • TitanDigital

                                    Can you do a 301 redirect without a hosting account?

                                    Trying to retire domain1 and 301 it to domain2 - just don't want to get stuck having to pay the old hosting provider simply to serve a .htaccess file with the redirect rule.

                                    Technical SEO | | TitanDigital
                                    0
                                  • steffen_

                                    Double 301 redirect

                                    Hi together, due to some technical reasons I have redirect (301) an existing link two times. Example: www.mydomain.com/root/site.html > 301 > www.mydomain.com/site.html > 301 www.mydomain.com/site_new.html Is there anybody how has got some experience like doing a double redirect? What about link juice? Best regards Steffen

                                    Technical SEO | | steffen_
                                    0
                                  • dim_d

                                    Why is a 301 redirected url still getting indexed?

                                    We recently fixed a redirect issue in a website, and although it appears that the redirection is working fine, the url in question keeps on getting crawled, indexed and cached by google. The redirect was done a month ago, and google shows cached version of it, even for a couple of days ago. Manual checking shows that its being redirected, and also a couple of online tools i checked report a 301 redirect. Do you have any idea why this could be happening? The website I'm talking about is www.hotelmajestic.gr and its being redirected to www.hotel-majestic.gr

                                    Technical SEO | | dim_d
                                    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
                                  • 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 - 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.