2012-04-05 214 views
0

我有重定向301用htaccess寫入的問題。重定向HTACCESS

我加入了followind文本到我的htaccess.txt,但它不工作:

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名稱。 嚴格說來,說,該文件的擴展名是.htaccess,並沒有名稱的前綴。