2012-04-05 26 views
0

htaccessでリダイレクト301の書き込みに問題があります。リダイレクトHTACCESS

私はhtaccess.txtにfollowindテキストを追加しましたが、それは動作しません:

Options +FollowSymLinks 
# mod_rewrite in use 
RewriteEngine On 
//301 Redirect Old File 
Redirect 301 http://www.old_site.com/en/about-us/company-profile.html http://www.new_site.com/en/about-us/company-profile.html 

私も成功せず、次のことを試してみました:

Options +FollowSymLinks 
# mod_rewrite in use 
RewriteEngine On 
//301 Redirect Old File 
Redirect 301 /en/about-us/company-profile.html http://www.new_site.com/en/about-us/company-profile.html 

どこに誤りがありますか? robots.txtを変更しますか?

おかげ

答えて

3

変更htaccess.txtから.htaccessにファイルの名前。 STRICTLYと言えば、ファイルの拡張子は.htaccessであり、名前の先頭には名前がありません。