urlrewrite 写法,不常用,请教
我要输入http://www.aa.com 跳转到 http://www.aa.com/quote
怎么写??
要求一定要用url重写
不能在index.php文件里header(location:)
[解决办法]
RewriteEngine onRewriteCond %{HTTP_HOST} www.aa.com$RewriteCond %{REQUEST_URI} !^/quote/RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ /quote/$1