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. ISAPI Redirect in httpd.ini doc

    ISAPI Redirect in httpd.ini doc

    Intermediate & Advanced SEO
    3 2 614
    • 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.
    • Horizon
      Horizon last edited by

      Hi folks,

      Due to working on a site older than myself, I find myself in a position whereby I need to set up some redirects in the httpd.ini document. I had wrongly assumed this would be in the same way as I would in htaccess, but alas, no dice.

      There's nothing special about what I'm trying to do, but I think the expressions are what are confusing me.

      I'm trying to redirect this example page - http://www.example.com/subfolder/DisplayArticle.asp?ID=12345 to it's subfolder http://www.example.com/subfolder/.

      Here's what I have:

      [ISAPI_Rewrite]

      Redirecting old article to new locations

      RewriteRule ^/subfolder/DisplayArticle.asp?ID=12345 /subfolder/ [R=301,L]

      Can someone please point me in the right direction?

      Thanks

      Matt

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

        It does not understand mod_rewrite R=301
        

        [RP]

        is the equilvalent
        

        on the actual base syntax, I am not completely sure, but I believe it would stay the same

        Horizon 1 Reply Last reply Reply Quote 1
        • Horizon
          Horizon @Jinx14678 last edited by

          Thanks Shane. My syntax wasn't perfect, but after messing about with a few different ones, and closing with [RP], I managed to get it to work.

          Many thanks!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Going from 302 redirect to 301 redirect weeks after changing URL structure
            vcj
            vcj
            0
            2
            131

          • If you do 302 redirect then change to 301 redirect do you lose all link juice?
            EricaMcGillivray
            EricaMcGillivray
            0
            3
            792

          • To Redirect or Not
            HashtagHustler
            HashtagHustler
            0
            9
            144

          • How to redirect an url in .htaccess when "redirect 301" doesnt work
            WilliamKammer
            WilliamKammer
            0
            5
            173

          • .htaccess 301 Redirect Help! Specific Redirects and Blanket Rule
            LynnPatchett
            LynnPatchett
            0
            3
            3.1k

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

          • Redirect
            nyanainc
            nyanainc
            0
            3
            388

          • How to Redirect
            tylerfraser
            tylerfraser
            0
            5
            448

          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