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. White Hat / Black Hat SEO
    4. 301 Redirect Asp.net Help

    301 Redirect Asp.net Help

    White Hat / Black Hat SEO
    2 2 139
    • 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.
    • Madz
      Madz last edited by

      Hey, we are redesigning the site and we are changing a lot of urls to make them more SEO friendly

      But some of the old urls have PR 4-5

      What is the best way to do about this?

      How to do a 301 redirect for specific pages in asp.net

      Or do you recommend something elsE?

      Thanks in advance

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

        Hi,There are lots of options to do this.

        Building your own redirect within the site is the best way to do this. The best option is to build a redirect file in c#/vb and search using RegEx for the old URLs and redirect to the new URLs. http://forums.asp.net/t/1844542.aspx Old post but sill a useful resource.

        Or you could add all the old URLs one by one and redirect to the new URLs if you want to avoid Reg Ex's.

        You could also try using the WebConfig if the above doesn't work.

        <httpredirect enabled="true" exactdestination="true" httpresponsestatus="Permanent"><add wildcard="OLD URL HERE" destination="NEW URL HERE"></add></httpredirect>

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • 301 Redirect Backlinks from Forbes,CNN.
          Hardcoretech
          Hardcoretech
          0
          7
          522

        • Image redirection: Will it helps or hurts?
          benesmartin
          benesmartin
          0
          5
          88

        • Best 301 redirection plugin for Wordpress?
          ChristopherGlaeser
          ChristopherGlaeser
          1
          2
          457

        • What is the difference between Redirect 301 and RedirectMatch 301 in .htaccess?
          Devanur-Rafi
          Devanur-Rafi
          0
          2
          12.9k

        • Thousands of 301 redirections - .htaccess alternatives?
          jfmonfette
          jfmonfette
          0
          10
          3.8k

        • How does the Google Treat 301 Redirects?
          KarlBantleman
          KarlBantleman
          0
          4
          2.0k

        • 2 Questions about 301 Redirects
          kchandler
          kchandler
          0
          3
          153

        • 301 Redirect ASP code
          TwoPints
          TwoPints
          0
          3
          636

        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