0
votes

i have a url
www.example.com/test.aspx?n=quick-brown-fox-jumps-over-the--lazy-dog-2890

i want to display it as
www.example.com/test/quick-brown-fox-jumps-over-the--lazy-dog/2890

using URL Rewrite regular expression

please help

1

1 Answers

0
votes

Try this:

RewriteEngine On
RewriteRule /test/(.+)/(.+) /test.aspx?n=$1-$2 [QSA]