# 炎酷CMS Apache 伪静态
<IfModule mod_rewrite.c>
RewriteEngine On
# 禁止 uploads 目录执行 PHP
RewriteRule ^uploads/.*\.(php|php3|php4|php5|phtml|pht|phar|cgi)$ - [F,L]

# sitemap.xml / robots.txt 动态生成（真实文件存在时优先）
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^sitemap\.xml$ index.php?sitemap=xml [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^sitemap\.txt$ index.php?sitemap=txt [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^sitemap\.html$ index.php?sitemap=html [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^robots\.txt$ index.php?robots=1 [L,QSA]
RewriteRule ^message/$ index.php?msg=1 [L,QSA]
RewriteRule ^col-([0-9]+)(-([0-9]+))?\.html$ index.php?col=$1&p=$3 [L,QSA]
RewriteRule ^art-([0-9]+)\.html$ index.php?art=$1 [L,QSA]
RewriteRule ^page-([a-zA-Z0-9_]+)\.html$ index.php?page=$1 [L,QSA]
RewriteRule ^([a-zA-Z0-9_]+)\.html$ index.php?page=$1 [L,QSA]
# 栏目目录式地址 /{flag}/ 与 /{flag}/{页码}/（真实文件/目录不拦截）
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?col_flag=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)/([0-9]+)/$ index.php?col_flag=$1&p=$2 [L,QSA]
</IfModule>
