I have a .htaccess in my root of website that looks like this:
我的网站根目录中有一个.htaccess,如下所示:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.mydomain\.pl [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?([a-z0-9_-]+)\.mydomain\.pl [NC]
RewriteRule ^/?$ /index.php?run=places/%1 [L,QSA]
RewriteCond %{REQUEST_URI} !^/index.php$
RewriteCond %{REQUEST_URI} !^/images/
RewriteCond %{REQUEST_URI} !^/upload/
RewriteCond %{REQUEST_URI} !^/javascript/
RewriteRule ^(.*)$ /index.php?runit=$1 [L,QSA]
But when I type:
但是当我键入:
mydomain.pl/guests
mydomain.pl/guests
I would like to go normally to actual folder guests. I understand that I need to somehow disable this rule for guests subfolder, but how do I do this?
我想正常去实际的文件夹客人。我知道我需要以某种方式为guest子文件夹禁用此规则,但我该怎么做?
EDIT:
编辑:
I've included whole .htaccess file
我已经包含了整个.htaccess文件
2 个解决方案
#1
14
I've put a htaccess in subfolder and added RewriteEngine Off and it works.
我在子文件夹中添加了一个htaccess并添加了RewriteEngine Off并且它可以工作。
#2
0
Add one of these
添加其中一个
RewriteEngine On
#If the request starts with guests, then pass it through
RewriteCond %{REQUEST_URI} ^guests
RewriteRule ^ - [L,QSA]
#Or, if the request contains an existing filename or directory, pass it through
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ - [L,QSA]
#1
14
I've put a htaccess in subfolder and added RewriteEngine Off and it works.
我在子文件夹中添加了一个htaccess并添加了RewriteEngine Off并且它可以工作。
#2
0
Add one of these
添加其中一个
RewriteEngine On
#If the request starts with guests, then pass it through
RewriteCond %{REQUEST_URI} ^guests
RewriteRule ^ - [L,QSA]
#Or, if the request contains an existing filename or directory, pass it through
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ - [L,QSA]