51 Star 80 Fork 50

小策一喋 / ewsdCMS

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
.htaccess 733 Bytes
Copy Edit Web IDE Raw Blame History
小策一喋 authored 2016-04-26 23:25 . 优化系统SEO
# Apache的rewrite重写规则,使用前请开启rewrite模块
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^article-(.*)$ index.php/Home/Article/detail/id/$1 [L,NC]
RewriteRule ^index-(.*)-(.*)-(.*).html$ index.php/Home/Article/index/pid/$1/cid/$2/p/$3 [L,NC]
RewriteRule ^index-(.*)-(.*).html$ index.php/Home/Article/index/pid/$1/cid/$2 [L,NC]
RewriteRule ^index-(.*).html$ index.php/Home/Index/index/p/$1 [L,NC]
RewriteRule ^page-(.*).html$ index.php/Home/Article/page/cid/$1 [L,NC]
# 兼容原URL
RewriteRule ^Article/(.*)$ index.php/Article/$1 [L,NC]
# 后台登陆
RewriteRule ^Admin$ index.php?m=Admin&c=Public&a=index [L,NC]
</IfModule>

Comment ( 0 )

Sign in for post a comment

PHP
1
https://git.oschina.net/xvpindex/ewsdCMS.git
git@git.oschina.net:xvpindex/ewsdCMS.git
xvpindex
ewsdCMS
ewsdCMS
master

Search