Forum Moderators: phranque
I am seeing some behaviour which I find confusing. When I enter a URL such as "http://localhost/index" into my browser, the server is returning the document "index.xml" from the folder listed in my DocumentRoot directive in httpd.conf.
Is this expected? It is causing me a few problems, because the following rule in .htaccess:
RewriteRule ^index$ /another_page.html
does not do anything when the aboe URL is entered into the browser. In order to get it to work I have to use this rule instead:
RewriteRule ^index\.xml$ /another_page.html
This matches when "http://localhost/index" is requested in the browser, but is counter intuitive.
Is this normal behaviour for Apache? I've not really been using it long enough to tell, but it seems odd that Apache should serve "index.xml" when I have asked for "index".
I thought maybe "index.xml" might be included in the list of default documents, but in httpd.conf, the "DirectoryIndex" has not been altered, i.e. it reads "DirectoryIndex index.html".
Help!