[NTLUG:Discuss] Trailing backslashes

MadHat madhat at unspecific.com
Fri Aug 29 10:22:13 CDT 2003


On Fri, 2003-08-29 at 08:27, Jack Snodgrass wrote:
> On Fri, 2003-08-29 at 07:46, Richard Humphrey wrote:
> > I have a web site that we have created for some of our distributors. For
> > some reason if I put in http://www.mydomain.com/support it will not take
> > me there. If I type in http://www.mydomain.com/support/ (note trailing
> > backslash) it works fine. Is this configurable or does something else
> > need to be in place so that http://www.mydomain.com/support will work
> > correctly?
> > 
> > 
> >  Richard Humphrey
> 
> the http spec says something like... if it ends in a '/' it's a 
> directory... otherwise it's a file. 
> 
> So... http://www.mydomain.com/support says to load the file support
> from http://www.mydomain.com. That's not what you want. You want to 
> load the index.html ( or whatever ) from the support directory. 
> 
> Apache ( and other servers ) will redirect a request for a file with 
> no extension to a similar url with the '/' appended. It will then load
> the appropriate index.html page. 

You have to use the mod_dir module loaded.

Apache v1.3.xx
http://httpd.apache.org/docs/mod/mod_dir.html

Apache v2.x
http://httpd.apache.org/docs-2.0/mod/mod_dir.html

-- 
MadHat at Unspecific.com
`But I don't want to go among mad people,' Alice remarked.
`Oh, you can't help that,' said the Cat: `we're all mad here...'
   -- Lewis Carroll - _Alice's_Adventures_in_Wonderland_




More information about the Discuss mailing list