2

次の住所があります: le%20coin%20de%20l’auteur%20-%20biographie%20de%20Cathérine%20Boullery.html 空白、引用符、アクセント付きの文字が含まれています。

次のようなものを使用したいと思います: redirect 301 /this-above-url http://telecharger-ebook-roman-fantasy-aila-pdf-fr.fr//le-coin-de-l-auteur-biographie-de-catherine-boullery.html

リダイレクトするこれらの奇妙な文字を含むページがいくつかあり、の経験はありませんがhtaccess、理解してコピーしようとしています...

4

1 に答える 1

1

url-pathを引用符で囲み、エンコードされていない文字を使用する必要があります。次のようなもの

redirect 301 "le coin de l’auteur - biographie de Cathérine Boullery.html" http://telecharger-ebook-roman-fantasy-aila-pdf-fr.fr//le-coin-de-l-auteur-biographie-de-catherine-boullery.html

ただし、これは私のテストサーバーでは機能しませんでした。

動作したのはmod_rewriteを使用することでした。

RewriteEngine On
RewriteBase /

RewriteRule "^le coin de l’auteur - biographie de Cathérine Boullery.html$" http://telecharger-ebook-roman-fantasy-aila-pdf-fr.fr//le-coin-de-l-auteur-biographie-de-catherine-boullery.html [R=302,L]
于 2012-05-01T18:40:23.803 に答える