刚进公司的时候老大一直在要求php做内页跳转,当时也不太了解细节所以一直没有说话。后来php问我你会不会做内页跳转,我说会一点就做了几个,从此搞内页跳转搞了两个星期。至于为什么做内页跳转哪就暂时不说那么多了,不知道的可以百度一下也可以谷歌。
以下是内页跳转的要求:
www.5i1show.com/jiank/meir/1-0-0-0跳转到www.5i1show.com/jiank/meir/1-0-0-0/
在配置文件里加入5i1show.com.conf
rewrite ^/invest/edai/(d-d-d-d)$ /invest/edai/$1/ permanent;
如果是第一页跳到主页面也可以这样
rewrite ^/invest/dai/(d-d-d-d-pd)$ /invest/dai/$1/ permanent;
www.5i1show.com/invest/welcome跳转到www.5i1show.com/invest/
rewrite ^/invest/welcome /invest/ permanent;
www.5i1show.com/tools跳转到www.5i1show.com/tools/
rewrite ^/tools$ /tools/ permanent;
www.5i1show.com/article/index/cid/3跳转到www.5i1show.com/article/help/
rewrite ^/article/index/cid/3 /article/help/ permanent;
www.5i1show.com/article/index/cid/4跳转到www.5i1show.com/article/notice/
rewrite ^/article/index/cid/4 /article/notice/ permanent;
www.5i1show.com/article/index/cid/5跳转到www.5i1show.com/article/media/
rewrite ^/article/index/cid/5 /article/media/ permanent;
www.5i1show.com/article/notice/p1/跳转到www.5i1show.com/article/notice/
rewrite ^/article/notice/p1/ /article/notice/ permanent;
www.5i1show.com/article/media/p1/跳转到www.5i1show.com/article/media/
rewrite ^/article/media/p1/ /article/media/ permanent;
www.5i1show.com/article/view/p1/跳转到www.5i1show.com/article/media/
暂时先写一部分,看看有没有需要的,如果你也有更好的可以一起探讨,
本文出自 “吴老二” 博客,请务必保留此出处http://9827789.blog.51cto.com/9817789/1703231