2012-04-05 65 views
1

我有一个像www.foo.com/start/rewrite.php/home/say/index删除文件,urlrewritefilter

一个URL如何使用UrlRewriteFilter到例如从该URL删除rewrite.php

www.foo.com/start/home/say/index 

我认为mod_rewrite的将

Options +FollowSymlinks 
RewriteEngine on 
RewriteRule ^/start/rewrite.php/?(.*) /$1 [R=301,L] 

谁能帮助工作?

回答

0

这可能工作:

<rule> 
    <from>^(.*)/(rewrite.php)/(.*)$</from> 
    <to>$1/$3</to> 
</rule>