MoeNote / .htaccess
xiaozhian's picture
Upload 17 files
ca533c7 verified
raw
history blame contribute delete
394 Bytes
AddType application/x-httpd-php83 .php
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})$
RewriteRule ^(.*)$ /index.php?id=%1 [L]
<FilesMatch "\.(db|bak|sql)$">
Require all denied
</FilesMatch>
# 添加默认文档类型
DirectoryIndex index.php
# 添加错误处理
php_flag display_errors on
php_value error_reporting E_ALL