locked
Redirect URL to a New URL RRS feed

  • Question

  • User1640667172 posted

    Hi all!

    My RewriteURL code like this

     <RewriterRule>
            <LookFor>~/test/(.+)-(\d{1,8}).html</LookFor>
            <SendTo>~/ChiTietSPSGNT.aspx?MSSanPham=$2</SendTo>
      </RewriterRule>

    How to config:

    When a URL like mydomain.com/test/abc-1.html. I want auto Rewrite to mydomain.com/rewrite/abc-1.html

    Tks all!

    Monday, May 13, 2013 12:57 AM

Answers

  • User1508394307 posted

    Try

     <RewriterRule>
            <LookFor>~/test/(.+)</LookFor>
            <SendTo>~/rewrite/$1</SendTo>
      </RewriterRule>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 13, 2013 2:47 AM