我怎么做一个外部重定向和的.aspx后,即可获取URL字符串?
How do I do an external redirection and get the 'URL-String' after .aspx?
http://www.sample.com/folder1/filename.aspx/title
到
http://www.sample.com/folder1/filename/title
我也做了以下
I have done the following
#RewriteCond %{THE_REQUEST} ^[A-Z0-9]{3,}s([^.]+).aspx
#RewriteRule ^ %1 [R=301,NE,NC,L]
但它返回错误的URL
But it returns wrong URL
http://www.sample.com/folder1
鸭preciate你样的建议。谢谢!
Appreciate your kind advice. Thank you!
您可以使用此规则:
RewriteCond %{THE_REQUEST} s([^.]+).aspx(S*)
RewriteRule ^ %1%2 [R=301,NE,L]
RewriteRule ^([^.]+?)/([^/.]+)/?$ /$1.aspx/$2 [L]
上一篇:htaccess的获取页面分页与斜线斜线、分页、页面、htaccess
下一篇:如何访问VAR文件夹,并在每个的cPanel表的.frm,.MYD和.MYI文件MySQL数据库文件夹?文件夹、并在、数据库、文件