下面是我的htaccess和重定向301不起作用 . 有任何想法吗?
order allow,deny
allow from all
Options -Indexes
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
Redirect 301 /index.php?id=4 site.com/newdirectory/
1 回答
不需要
order
指令就把它取出来 . 你也无法匹配Redirect
指令中的查询字符串使用RewriteCond
的mod_rewrite
而不是这样: