I는 다음과 같습니다 웹 사이트의 내 루트에서의 .htaccess 있습니다하나의 하위 카테고리에 대해 RewriteRule을 비활성화하려면 어떻게합니까?
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]
을하지만 입력 할 때 :
mydomain.pl/guests
나는 싶습니다 실제 폴더 손님에게 정상적으로 가십시오. 게스트 하위 폴더에 대해이 규칙을 사용하지 않도록 설정해야한다는 것을 알고 있지만 어떻게해야합니까?
편집 :이
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 이것은 완전히 유효한 질문입니다. – roosteronacid