Forum Moderators: phranque

Message Too Old, No Replies

not finding index.html

         

rawood3

8:58 pm on Apr 21, 2006 (gmt 0)

10+ Year Member



I am running a Apache web server 11.10 and within my html code I am using the 'breadcrumb' class to go back to previous pages.
The web server does not seem to recognize the index.html file when formatted without a '/' , like so
[mycompany.com...]

However, if I place a '/' after operations the web server seems to find the index.html fine.

Lastly, the DirectoryIndex does contain index.html

thanks for any assistance

jdMorgan

9:47 pm on Apr 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



rawood3,

Welcome to WebmasterWorld!

/datacenter1/operations/ refers to the directory listing or index file in the /datacenter1/operations directory, while /datacenter1/operations refers to the extensioness file "operations" in the in the /datacenter1 directory, so technically, the server is behaving properly.

However, Apache mod_dir [httpd.apache.org], when introduced, included a "fix-up" (see mod_dir documentation Summary section) on these cases, since omitting the trailing slash is a common error. You might want to check to see that mod_dir is loaded on your server.

If mod_dir is not and cannot be available, then you could do the fix-up "manually" with mod_rewrite, but using mod_dir would be preferable.

Jim

rawood3

10:04 pm on Apr 21, 2006 (gmt 0)

10+ Year Member



thanks Jim, in order to limit the length of my question I failed to mention that I happened upon this error when we started moving our web files from 1 server to another....previously on another server (also running Apache) there was no problem with leaving out the trailing '/' .... I will check your suggestions first thing on Monday...Thanks for such a prompt response.

Russ

rawood3

2:48 pm on Apr 26, 2006 (gmt 0)

10+ Year Member



Jim,
I am man enough to admit when I am beat. After reading your recommendations I am still unable to get the index.html without trailing '/' to work properly. In fact, the browser reacts as if it is looking for an 'extensionless' file and cannot find one, but does not even pull up the directory list. I need some detailed direction here. Yes, I am very green on Apache.

Russ

jdMorgan

2:57 pm on Apr 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> In fact, the browser reacts as if it is looking for an 'extensionless' file

To begin, check your server error log, and find out what page the server is trying to access.

Jim

rawood3

3:14 pm on Apr 26, 2006 (gmt 0)

10+ Year Member



Jim,
I am man enough to admit when I am beat. After reading your recommendations I am still unable to get the index.html without trailing '/' to work properly. In fact, the browser reacts as if it is looking for an 'extensionless' file and cannot find one, but does not even pull up the directory list. I need some detailed direction here. Yes, I am very green on Apache.

Russ