htaccess not called when the url point to an existing folder

Posted by Eldad on Stack Overflow See other posts from Stack Overflow or by Eldad
Published on 2010-02-12T01:50:42Z Indexed on 2010/04/18 1:03 UTC
Read the original article Hit count: 461

Filed under:
|
|
|

Hi, I'm running zend server on windows 7. I'm using the htaccess from jooml:

Options +FollowSymLinks

RewriteEngine On

RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]

RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]

RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]

RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]

RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})

RewriteRule ^(.*)$ index.php [F,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

when I'm calling this url: http://localhost/ABC/ the data is been redirect to index.php

but if I'm creating the folder ABC the server is showing the ABC folder content and not redirecting the data back to index.php.

how can I prevent that, I want all the calls data to be directed into index.php?

Thanks

© Stack Overflow or respective owner

Related posts about apache2

Related posts about php