# Xiuno BBS 5.1.6 伪静态规则（Apache）
# 放在网站根目录 .htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # 安装目录保护（安装完成后可删除 install/ 目录或保持此规则）
    RewriteRule ^install/ - [F,L]

    # 真实文件/目录不重写
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # 伪静态：将 /xxx-xxx.htm 重写到 index.php?xxx-xxx.htm
    RewriteRule ^(.*)$ index.php?$1 [QSA,L]
</IfModule>

# 安全：禁止访问敏感文件
<FilesMatch "\.(sql|log|ini|conf|env|lock)$">
    Require all denied
</FilesMatch>
