1
我有下面的代码,这需要网址,如“www.example.com/foo”,它改写为“www.example.com/html/foo.php”htaccess的 - 测试重写URL
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^([^\.]+)$ html/$1.php [NC]
我想修改这个,如果重写的url:'www.example.com/html/foo.php'不存在,URL会被重写为'www.example.com/html/fallback.php?查询=富'
我一直在绕圈走了几个小时。任何解决方案
完美的作品 - 非常感谢! – hunter 2013-02-14 23:31:20