DaoKeCMS伪静态配置📅 2025-10-01  |  👁 160 次浏览

Apache配置

确保.htaccess文件存在并启用mod_rewrite模块:


  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?p=$1 [QSA,PT,L]

Nginx配置

location / {
    if (!-e $request_filename) {
        rewrite ^(.*)$ /index.php?p=$1 last;
    }
}

芒阳网络团域cms开发中心

Copyright © 2023 刀客CMS内容管理系统