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
        • How to redirect 301 from high authority sites to own website?
          Ademirates
          Ademirates
          0
          3
          69

        • Deleting 301 Redirect URLs from the CMS
          KevinBudzynski
          KevinBudzynski
          0
          4
          80

        • 301 redirect advice please, should i and what would be the boosts?
          KarinaW
          KarinaW
          0
          9
          167

        • Problems in 301 redirections
          esiow2013
          esiow2013
          0
          4
          99

        • 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 from an unwanted non-affiliated domain
          dohertyjf
          dohertyjf
          0
          3
          706

        • 301 Redirect?
          john4math
          john4math
          0
          3
          550

        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

        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