使301从旧的ASP页面重定向到wordpress php [英] make 301 redirect from old asp page to wordpress php

查看:75
本文介绍了使301从旧的ASP页面重定向到wordpress php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能帮助我从asp页面进行301重定向: http ://www.maribowl.dk/bowling.asp?Page = Caf%E9 + Menu 到我的新wordpress网站: http://www.maribowl.dk/cafemenu/

can anyone help me make a 301 redirect from an asp page: http://www.maribowl.dk/bowling.asp?Page=Caf%E9+Menu to my new wordpress site: http://www.maribowl.dk/cafemenu/

这可以在wordpress网站上的.htaccess文件中或在我应该粘贴吗?

can this be done in an .htaccess file on the wordpress site or where should I paste it in?

推荐答案

将此代码放在您的 DOCUMENT_ROOT / .htaccess 文件中:

Place this code in your DOCUMENT_ROOT/.htaccess file:

RewriteEngine On


RewriteCond %{QUERY_STRING} ^Page=St\%E6vne [NC]
RewriteRule ^Tournaments\.asp$ http://www.maribowl.dk/julestaevne-2013/? [B,R=301,L,NE]

这篇关于使301从旧的ASP页面重定向到wordpress php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆