20,359
社区成员
发帖
与我相关
我的任务
分享
<IfModule mod_rewrite.c>
RewriteEngine on
#非静态化地址情况
RewriteCond %{REQUEST_URI} !\.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
#静态化地址情况
RewriteCond %{REQUEST_URI} \.html$
RewriteCond %{REQUEST_URI} !^Html/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ Html/$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^Html(.*)\.html$ index.php/$1 [QSA,PT,L]