0

PHPで書かれていると思われるIPBを使用してWebサイトを作成しました。

301 の目立つリダイレクトを使用しようとしていますが、Web からリダイレクトを使用しようとすると、500 サーバー エラーが発生します。

壊れた URL は「http://thereviewforum.com/index.php?/page/index.html/_/monthly-top-10/top-10-free-vpn-service-providers-r17」です。

ユーザーと検索ボットをhttp://thereviewforum.com/monthly_top_10.html/_/monthly-top-10/top-10-free-vpn-service-providers-r17に誘導したいと思います

もう一度、どんな助けでも大歓迎です!

4

1 に答える 1

1

私はあなたができると思います(以下は機能しません。実際の例については以下を参照してください):

Redirect 301 /index.php?/page/index.html/_/monthly-top-10/top-10-free-vpn-service-providers-r17 http://thereviewforum.com/monthly_top_10.html/_/monthly-top-10/top-10-free-vpn-service-providers-r17

編集:

上記は機能しません。クエリ文字列は考慮されていないと思います。最初にテストするべきでした。これが機能することを確認するためにテストした例です。

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/index.php$
RewriteCond %{QUERY_STRING} ^/page/index.html/_/monthly-top-10/top-10-free-vpn-service-providers-r17$
RewriteRule .? /monthly_top_10.html/_/monthly-top-10/top-10-free-vpn-service-providers-r17 [L,R=301]
于 2012-05-19T03:36:10.767 に答える