开发者

Redirecting bad url links from external sites with .htaccess

I have two inbound links that land on 404 pages because the links are squiffy. I have tried 301'ing these links as normal but without success, I believe because of the characters used from this external URL.

Column<u>Radiators.html

is the page suggested on this external site and

Column_Radiators.html

is the actual page.

also

Bath%3Cu%3EFiller.html

on the external site and

Bath_Filler.html

on our actual website.开发者_如何学运维

How can I succesfully redirect these pages?


Simply add these lines in your .htaccess

redirect 301 /Column<u>Radiators.html /index.html
redirect 301 /Bath<u>Filler.html /index.html

Note: I use index.html as the default redirection but you can use a custom 404.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜