Helpdesk Apache / Nginx静态化方法

Apache

RewriteEngine ON

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

ErrorDocument 404 /404/

 

Nginx

location / {
    index index.php index.html index.htm;
    try_files $uri $uri/ /index.php?$args;
}
location /operator/ {
    try_files $uri $uri/ /operator/index.php?$args;
}

 

給TA打賞
共{{data.count}}人
人已打賞
服務器運維

宝塔面板切换PHP或相关操作出现SITE_PHPVERSION_ERR_A22错误的解决方法

2021-5-24 8:28:10

服務器運維

PHP7.*版本安装Suhosin扩展禁用eval函数教程(宝塔面板)

2021-6-4 3:13:19

0 Reply AAuthor MManager
    暫無討論,說說你的看法吧
搜索