Home > Backend Development > PHP Tutorial > 网站更换的有关问题

网站更换的有关问题

WBOY
Release: 2016-06-13 12:50:08
Original
986 people have browsed it

网站更换的问题
现在公司重新做了一个网站,以前的新闻部整合到了新网站里面,但以前的旧新闻链接要保留,并且点击旧新闻的时候要指向新的网站,这个要怎么做,需要配置.htaccess吗?


------解决方案--------------------
是的,配置302转向
------解决方案--------------------
RewriteRule salaryandcareertips\/(0-9+)\/detail\/  news-$1/ [L,R=301]
------解决方案--------------------
简单点就是:  /modules/heighlights/heighlight-details.php?id=1&pagetype=2 这样的链接
重写为:heighlights/1/2
 /modules/employers/employer-details.php?id=1&pagetype=2
重写为:employer/1/2
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template