1 Star 0 Fork 131

liinux/thinkphp-bjyblog

forked from 白俊遥/thinkphp-bjyblog 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.htaccess 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
白俊遥 提交于 2016-08-12 00:15 . 301以前混乱的url
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
#去掉首页的index.php
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
RewriteRule /Home/Index/article/aid/(\d+) http://%{HTTP_HOST}/article/$1 [NC,L,R=301]
RewriteRule /Home/Index/article/cid/(\d+)/tid/(\d+)/search_word/0/aid/(\d+) http://%{HTTP_HOST}/article/$3 [NC,L,R=301]
RewriteRule /Home/Index/article/cid/(\d+)/tid/(\d+)/aid/(\d+) http://%{HTTP_HOST}/article/$3 [NC,L,R=301]
RewriteRule /Index/article/aid/(\d+) http://%{HTTP_HOST}/article/$1 [NC,L,R=301]
RewriteRule /Index/article/tid/(\d+)/aid/(\d+) http://%{HTTP_HOST}/article/$2 [NC,L,R=301]
RewriteRule /Index/article/cid/(\d+)/aid/(\d+) http://%{HTTP_HOST}/article/$2 [NC,L,R=301]
RewriteRule /Index/article/cid/(\d+)/tid/(\d+)/aid/(\d+) http://%{HTTP_HOST}/article/$3 [NC,L,R=301]
RewriteRule /article/cid/(\d+)/(\d+) http://%{HTTP_HOST}/article/$2 [NC,L,R=301]
RewriteRule /article/tid/(\d+)/(\d+) http://%{HTTP_HOST}/article/$2 [NC,L,R=301]
</IfModule>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liinux/thinkbjy.git
git@gitee.com:liinux/thinkbjy.git
liinux
thinkbjy
thinkphp-bjyblog
master

搜索帮助