I have lately run into some strange behavior with directory demands in Web addresses on Apache servers. I am a newcomer to Apache servers and HTACCESS stuff, so perhaps someone can fill me within this.

If there's a sub-directory known as "example" on the server and that i attempt to request ezinearticles by typing www.example.com/example/ everything works not surprisingly. The Apache server searches for the default.php, index.php, yet others not surprisingly. Basically type www.example.com/make sure there's no file or directory akin to "test" I recieve a 404 error not surprisingly. Here's where it will get strange, should you key in www.example.com/example (and www.example.com/example/ is available) the server does not even return a 404. Actually it either redirect loops or I finish up obtaining a "www.example.com/example doesn't exist or perhaps is unavailable.Inch from the Web service provider. Is suppose to occur?

Here's where it's giving us a problem. I've got a simple HTACCESS file that redirects all demands to some query string:

Options +FollowSymLinks +MultiViews -Indexes

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteBase /

RewriteRule ^styles/[\d]{10}/(.*)\.(css|jpg|gif)$ styles/$1.$2 [NC,L]
RewriteRule ^scripts/[\d]{10}/(.*)\.(js|jpg|gif)$ scripts/$1.$2 [NC,L]

RewriteRule \.(css|jpe?g|png|gif|js|ico)$ - [L]
RewriteRule ^(.+)$ default.php?page=$1 [QSA,L,NC]


This works fine about 99% of times. Then there's the sites problem I referred to above. Set up HTACCESS exists, if your directory is asked for with no ending slash, everything fails, which happens on my local server as well as on my shared host with Godaddy. Factor is, I want the every demands for example

world wide web.example.com/example

to visit


even when there's a directory



Also, I have viewed the rewrite logs, when the directory is asked for with no trailing slash, the Apache server does not even get the opportunity to process the HTACCESS file.

Anybody have solutions?