htaccess - do not rewrite in this case

后端 未结 1 1000
误落风尘
误落风尘 2021-01-25 15:16

My access file looks like this:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME}          


        
相关标签:
1条回答
  • 2021-01-25 16:12

    add:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteCond %{REQUEST_URI}  !^/facebook
    RewriteRule ^.*$ index.php [NC,L]
    
    0 讨论(0)
提交回复
热议问题