Possible Duplicate:
.htaccess rewrite to redirect root URL to subdirectory
我需要更改我网站中的所有链接(2455)。
当访问者来自 Google(使用旧链接)时,将会出现问题,因为页面将是 404 page not found
我想将旧链接重定向到新版本的页面。例如:
旧链接:
http://example.com/hotel/13234
http://example.com/hotel/132
http://example.com/hotel/323
http://example.com/page/about_us
http://example.com/page/contact
新链接:(在域名后添加“博客”)
http://example.com/blog/hotel/13234
http://example.com/blog/hotel/132
http://example.com/blog/page/about_us
http://example.com/blog/hotel/323
...
...
...
最好的方法是什么?
最佳答案
关于php - 更改我所有的网站链接 : what is the best way?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14073832/