How to do an external redirect and get a "URL String" after .aspx?
http://www.sample.com/folder1/filename.aspx/title
to
http://www.sample.com/folder1/filename/title
I did the following
#RewriteCond %{THE_REQUEST} ^[A-Z0-9]{3,}\s([^.]+)\.aspx #RewriteRule ^ %1 [R=301,NE,NC,L]
But it returns an invalid URL
http://www.sample.com/folder1
Appreciate your good advice. Thank!
You can use this rule:
RewriteCond %{THE_REQUEST} \s([^.]+)\.aspx(\S*) RewriteRule ^ %1%2 [R=301,NE,L] RewriteRule ^([^.]+?)/([^/.]+)/?$ /$1.aspx/$2 [L]