2012-04-29 7 views
2

私は以下のアドレスを持っています: le%20coin%20de%20l’auteur%20-%20biographie%20de%20Cathérine%20Boullery.html これには、空白、引用符、およびアクセント付きの文字が含まれています。私のようなものを使用したいと思います空白、引用符、éを含むhtaccessリダイレクト

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経験がないが、私が見るの...

答えて

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] 
+0

回答ありがとうございます。私もそれをテストしましたが、それも失敗しました... – tibibou

+0

'RewriteRule'は動作しましたか? – Gerben

+0

他のケースでは、書き換えルールが機能していることを確認しました。 #古いページ でRewriteBase/ のRewriteRuleにdefault.html http://telecharger-ebook-roman-fantasy-aila-pdf-fr.fr/indexをリダイレクト+ FollowSymLinksを オプション:ここに私の.htaccessファイルの抽出物です。 htmlの#OK のRewriteRule "^ルコインドゥ映像作家 - バイオグラフィーデキャサリンBoullery.html $" http://telecharger-ebook-roman-fantasy-aila-pdf-fr.fr/le-coin-de-l-あなたのコードでCatherineにアクセントアクセントが存在しないことがわかりました。[R = 302、L]#not OK – tibibou

関連する問題