这真让我抓狂。它绝对不是缓存问题,我已经在http://htaccess.madewithlove.be/测试了规则,一切正常。但由于某种原因,我无法让任何重写规则起作用。我刚刚添加了一个简单的测试,但如果有人可以建议它可能是 wordpress 或者它在我的 htaccess 中非常明显?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#rewrites
RewriteRule ^test.html$ http://www.google.co.uk/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
#redirects
Redirect 301 /success-stories.html /success-stories/
Redirect 301 /introductions-agency-news/ /dating-agency-news/
Redirect 301 /how-do-we-do-it.html /our-service/
Redirect 301 /1.html /
</IfModule>
# END WordPress