[英]Redirect 301 in .htaccess Redirecting to other url
I have redirected one of my redesigned website using this code. 我已使用此代码重定向了我重新设计的网站之一。
Redirect 301 /oldurl http://www.domain.com/newurl
When I Used this code in my htaccess file. 当我在htaccess文件中使用此代码时。 the Url I am getting is htt://www domain com/newurl?oldurl Can any one help me regarding this
我得到的网址是htt:// www域名com / newurl?oldurl关于此问题,有人可以帮我吗
Hey some one help facing the same issue again for this website: http://www.godsfood.in/ 嘿,此网站的一些帮助再次面临着同一问题: http : //www.godsfood.in/
我有这个解决方案。尝试这个
RewriteRule ^old-location/?$ /new-location/ [END,R=301]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.