开发者

htaccess - do not rewrite in this case

开发者 https://www.devze.com 2023-04-08 08:30 出处:网络
My access file looks like this: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] 开发者_如何学CRewriteCond %{REQUEST_FILENAME} -l [OR]

My access file looks like this:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
开发者_如何学CRewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

But I have a directory called facebook that I want to access as usuall through the URL http://mysite.com/facebook. What do I need to add to the above so that it ignores (does not rewrite) this directory?


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

精彩评论

暂无评论...
验证码 换一张
取 消