新しいURL構造を持つwww.wildchildclothes.comの再設計を行いました。古いサイトはZenCartで実行されていて、URL構造が正しくありませんでした。これが私がリダイレクトしたいもののいくつかの例です:
古い:www.wildchildclothes.com/page.html?chapter=1&id=21新しい:www.wildchildclothes.com
と...
古い:www.wildchildclothes.com/index.php?main_page=faq_info&fcPath=0&faqs_id=13新しい:www.wildchildclothes.com/customer-service.html
これを達成するために私の.htaccessにあるものは次のとおりです。
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^([^&]*&)*chapter=1(&|$)
RewriteCond %{QUERY_STRING} ^([^&]*&)*id=21(&|$)
RewriteRule ^page\.html http://www.wildchildclothes.com? [L,R=301]
RewriteCond %{QUERY_STRING} ^([^&]*&)*main_page=faq_info(&|$)
RewriteCond %{QUERY_STRING} ^([^&]*&)*fcPath=0(&|$)
RewriteCond %{QUERY_STRING} ^([^&]*&)*faqs_id=13(&|$)
RewriteRule ^index\.php$ http://www.wildchildclothes.com/customer-service.html? [L,R=301]
しかし、これはまったく機能しません。リダイレクトを開始するのではなく、404ページにのみ送信されます。誰かが光を当てることができますか?完全な.htaccessは以下に掲載されています。
どうもありがとう、ジョナ