bbs1org伪静态规则Nginx和htaccess
13
- admin管理员
Apache伪静态规则,直接把下面复制到根目录.htaccess文件
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?$1 [QSA,L] RewriteRule ^app/(data|cache|plugins|setup)/ - [R=404,L] RewriteRule "(^|/)\." - [R=404,L] RewriteRule ^app/upload/.*\.(php|php5|phtml|pl|py|sh|cgi)$ - [NC,R=404,L] </IfModule>Nginx伪静态规则
location / { try_files $uri $uri/ /index.php?$query_string; } location ~ ^/app/(data|cache|plugins|setup)/ { deny all; return 404; } location ~ /\. { deny all; return 404; } location ~* ^/app/upload/.*\.(php|php5|phtml|pl|py|sh|cgi)$ { deny all; return 404; } - 暂无回复