WordPress 301重定向而不会崩溃

时间:2014-08-14 11:24:21

标签: wordpress .htaccess redirect

我必须制作45个重定向以保留谷歌上的有机结果。问题是当我将它们插入.htaccess时,站点崩溃(内部服务器错误)。

知道这种301重定向方法有什么问题吗?我的代码如下。

由于

redirect 301 / http://atomium.hr/
redirect 301 /usluge/ http://atomium.hr/usluge/
redirect 301 /klijenti/ http://atomium.hr/klijenti/
redirect 301 /biografija/ http://atomium.hr/o-nama/
redirect 301 /o-nama/ http://atomium.hr/o-nama/
redirect 301 /kontakt/ http://atomium.hr/kontakt/
redirect 301 /izdvojene-usluge/ http://atomium.hr/nove-usluge/
redirect 301 /nasi-klijenti/ http://atomium.hr/klijenti/
redirect 301 /nas-kontakt-redirektovano/ http://atomium.hr/kontakt/
redirect 301 /?lang=hr http://atomium.hr/
redirect 301 /usluge/?lang=en http://atomium.hr/en/usluge/
redirect 301 /klijenti/?lang=en http://atomium.hr/en/klijenti/
redirect 301 /biografija/?lang=en http://atomium.hr/en/o-nama/
redirect 301 /o-nama/?lang=en http://atomium.hr/en/o-nama/
redirect 301 /kontakt/?lang=en http://atomium.hr/en/kontakt/
redirect 301 /izdvojene-usluge/?lang=en http://atomium.hr/en/nove-usluge/
redirect 301 /nasi-klijenti/?lang=en http://atomium.hr/en/klijenti/
redirect 301 /nas-kontakt-redirektovano/?lang=en http://atomium.hr/en/kontakt/
redirect 301 /sigurnosno-tehnicki-list/ http://atomium.hr/
redirect 301 /?page_id=5 http://atomium.hr/usluge/
redirect 301 /?page_id=7 http://atomium.hr/kontakt/
redirect 301 /o-nama/?lang=en/feed/&lang=en http://atomium.hr/en/o-nama/
redirect 301 /klijenti/?lang=en/feed/&lang=en http://atomium.hr/en/klijenti/
redirect 301 /kontakt/?lang=en/feed/&lang=en http://atomium.hr/en/kontakt/
redirect 301 /usluge/?lang=en/feed/&lang=en http://atomium.hr/en/usluge/
redirect 301 /sigurnosno-tehnicki-list/feed/ http://atomium.hr/
redirect 301 /sigurnosno-tehnicki-list/?lang=en http://atomium.hr/
redirect 301 /izdvojene-usluge/?lang=en/feed/&lang=en http://atomium.hr/en/nove-usluge/
redirect 301 /biografija/?lang=en/feed/&lang=en http://atomium.hr/en/o-nama/
redirect 301 /klijenti/?/feed/ http://atomium.hr/klijenti/
redirect 301 /klijenti/?/feed/&lang=en http://atomium.hr/en/klijenti/
redirect 301 /o-nama/?/feed/ http://atomium.hr/o-nama/
redirect 301 /o-nama/?/feed/&lang=en http://atomium.hr/en/o-nama/
redirect 301 /kontakt/?/feed/ http://atomium.hr/kontakt/
redirect 301 /kontakt/?/feed/&lang=en http://atomium.hr/en/kontakt/
redirect 301 /usluge/?/feed/ http://atomium.hr/usluge/
redirect 301 /usluge/?/feed/&lang=en http://atomium.hr/en/usluge/
redirect 301 /sigurnosno-tehnicki-list/?lang=en/feed/&lang=en http://atomium.hr/en/
redirect 301 /biografija/?/feed/ http://atomium.hr/o-nama/
redirect 301 /biografija/?/feed/&lang=en http://atomium.hr/en/o-nama/
redirect 301 /izdvojene-usluge/?/feed/ http://atomium.hr/nove-usluge/
redirect 301 /izdvojene-usluge/?/feed/&lang=en http://atomium.hr/en/nove-usluge/
redirect 301 /sigurnosno-tehnicki-list/?/feed/ http://atomium.hr/
redirect 301 /sigurnosno-tehnicki-list/?/feed/&lang=en http://atomium.hr/en/
redirect 301 /?lang=en http://atomium.hr/en/

*更新:

这是我在error_log中找到的错误:

[Thu Aug 14 13:34:09 2014] [alert] [client 212.92.200.229] /home/atomium/public_html/.htaccess: Invalid command '\xef\xbb\xbf', perhaps misspelled or defined by a module not included in the server configuration

0 个答案:

没有答案