Url rewriting 使用urlrewritefilter从url中删除文件
我有一个像Url rewriting 使用urlrewritefilter从url中删除文件,url-rewriting,tuckey-urlrewrite-filter,Url Rewriting,Tuckey Urlrewrite Filter,我有一个像www.foo.com/start/rewrite.php/home/say/index这样的URL 如何使用UrlRewriteFilter从此URL中删除rewrite.php,例如 www.foo.com/start/home/say/index 我认为mod_重写将与 Options +FollowSymlinks RewriteEngine on RewriteRule ^/start/rewrite.php/?(.*) /$1 [R=301,L] 有人能帮忙吗?这可能
www.foo.com/start/rewrite.php/home/say/index这样的URL
如何使用UrlRewriteFilter从此URL中删除rewrite.php,例如
www.foo.com/start/home/say/index
我认为mod_重写将与
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^/start/rewrite.php/?(.*) /$1 [R=301,L]
有人能帮忙吗?这可能有用:
<rule>
<from>^(.*)/(rewrite.php)/(.*)$</from>
<to>$1/$3</to>
</rule>
^(.*)/(rewrite.php)/(.*)$
$1/$3