我不想重定向以下 URL:
1. 从:http ://www.example.com/tr/component/content/article?id= 11 到:http ://www.example.com/services/terms/
2. 从:http ://www.example.com/tr/component/content/article?id= 45 到:http ://www.example.com/services/cars/
我有以下代码:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} id=11
RewriteRule (.*) http://www.example.com/services/terms/? [R=301,L]
RewriteCond %{QUERY_STRING} id=45
RewriteRule (.*) http://www.example.com/services/cars/? [R=301,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
但是使用上面的代码,我可以编写以下内容 - 并最终出现在“条款”页面:
这是错误的。我应该改变什么?