1

我想添加重定向:

http://www.example.com/hebradio/index.php?radio=11 ---> http://example.com/radio/reshet-gimel

到我的(wordpress)网站,到当前的 htaccess:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

RewriteCond %{REQUEST_URI} /index.php$
RewriteCond %{QUERY_STRING} ^radio=11$
RewriteRule ^.*$ http://example.com/radio/reshet-gimel [L,R=301]

如您所见,我将其添加到文件末尾...但是,它不起作用:(我该怎么办?谢谢!

4

0 回答 0