当前位置:首页>文章>.htaccess 伪静态点击页面无反应解决方案

.htaccess 伪静态点击页面无反应解决方案

2019-07-31 2664 文章
path对路径文件形式路径 .htaccess 方案一:
  1. <IfModule mod_rewrite.c>
  2.   Options +FollowSymlinks -Multiviews
  3.   RewriteEngine On
  4.   RewriteCond %{REQUEST_FILENAME} !-d
  5.   RewriteCond %{REQUEST_FILENAME} !-f
  6.   RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
  7. </IfModule>
  path对参数形式路径 .htaccess 方案二:
  1. <IfModule mod_rewrite.c>
  2.   Options +FollowSymlinks -Multiviews
  3.   RewriteEngine On
  4.   RewriteCond %{REQUEST_FILENAME} !-d
  5.   RewriteCond %{REQUEST_FILENAME} !-f
  6.   RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
  7. </IfModule>
  参数对path形式路径 .htaccess 方案三:
  1. <IfModule mod_rewrite.c>
  2.   Options +FollowSymlinks -Multiviews
  3.   RewriteEngine On
  4.   RewriteCond %{REQUEST_FILENAME} !-d
  5.   RewriteCond %{REQUEST_FILENAME} !-f
  6.   RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
  7. </IfModule>
   

评论 (1)

哈喽
哈喽 2020-05-09 17:15
看看行不行