1

リダイレクトを追加したい:

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

私の(ワードプレス)サイトへ、現在の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