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. On-Page / Site Optimization
    4. Redirecting URLS on windows

    Redirecting URLS on windows

    On-Page / Site Optimization
    4 3 317
    • 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.
    • Grumpy_Carl
      Grumpy_Carl last edited by

      Could anyone help out here please.

      A client of ours have reveloped their website from HTML to ASP (helpful!). They have 60 odd pages indexed in Google with the .html extension. We need to do a redirect on these pages so that all link juice is passed to the new pages.

      What would be the best way to do this please?

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

        Gather a list of all the old HTML URL's
        Gather a list of all the new ASP URL's

        Find your .htaccess file. Edit it and start adding this,

        Redirect 301 /old-file.html http://www.domain.com/new-file.asp

        for each of the old/new URL's

        Hope this helps, more info can be found here. Remember the best way would be to do it the right way!

        Grumpy_Carl 1 Reply Last reply Reply Quote 0
        • Grumpy_Carl
          Grumpy_Carl @ak1lz last edited by

          Thanks Ak1lz

          Do htaccess work on a Windows server? I was under the impression they didn't

          ShaMenz 1 Reply Last reply Reply Quote 0
          • ShaMenz
            ShaMenz @Grumpy_Carl last edited by

            Hi Mister G,

            .htaccess files are the means used for creating redirects in a LAMP setup using an Apache server.

            To create redirects on a Windows box you need to use a quite different method.

            This quick reference chart for creating redirects should give you the information you need for most normal redirect situations.

            However, when working with .htaccess we would normally create a single rule that redirects all .html files to the .aspx file of the same name. Ours is a LAMP shop, so Windows is not our forte, but I believe you can do the same thing with the proviso that your server is set up for it. A little hard since I don't know exactly which Windows Server setup you are dealing with, but This link might help you out in doing that.

            Hope that helps,

            Sha

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Using keywords in my URL: Doing a redirect to /keyword
              Mark_Ginsberg
              Mark_Ginsberg
              0
              3
              1.4k

            • To redirect or not to redirect...That is the question
              EGOL
              EGOL
              0
              3
              189

            • 301 Redirects From a URL without Keyphrases to one With Keyphrases
              MickEdwards
              MickEdwards
              0
              4
              79

            • 301 redirects, efficiency and dynamic URLs
              TommyTan
              TommyTan
              0
              2
              196

            • Wordpress pages URL's redirection.
              evolvingSEO
              evolvingSEO
              0
              2
              168

            • 301 redirects / clean urls (2)
              AlanBleiweiss
              AlanBleiweiss
              0
              2
              456

            • Brand Name URL Redirecting to Actual URL
              iung
              iung
              1
              8
              524

            • 301 redirect and then keywords in URL
              BobGW
              BobGW
              0
              14
              2.5k

            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