PHP程序部署时的伪静态文件(window/linux)

Linux的伪静态如下:

 <IfModule mod_rewrite.c>
  Options +FollowSymlinks
  RewriteEngine On


  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>


Window的伪静态如下:

<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  RewriteEngine On


  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>

猜你喜欢

转载自blog.csdn.net/pinming_sanlang1990/article/details/80882798