.htaccess文件
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
#RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] 
RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]

万网空间下 apache配置htaccess文件

nginx环境(未测试)

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

相关文章:

  • 2021-12-04
  • 2021-12-25
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
猜你喜欢
  • 2022-01-11
  • 2022-01-07
  • 2022-12-23
  • 2021-06-08
  • 2021-06-04
  • 2021-05-20
  • 2021-08-01
相关资源
相似解决方案