302-将域重定向到子文件夹

时间:2016-05-02 17:03:01

标签: prestashop http-status-code-302

我的客户的域名(camocamo.com)被302重定向到子文件夹camocamo.com/fi/。我想将其更改为301重定向,但我无法弄清楚如何。任何想法将不胜感激。该网站建立在PrestaShop上。 谢谢。

1 个答案:

答案 0 :(得分:0)

正如我在https://www.prestashop.com/forums/topic/387556-editing-htaccess-for-301-redirects-to-new-site-urls/中看到的那样 ,尝试在apache根目录的.htaccess文件中添加一个redict规则,将重写的cond置于此代码下面:

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

该行可能是:

RedirectMatch 301 / http://camocamo.com/fi/
相关问题