[NTLUG:Discuss] Trailing backslashes

Jack Snodgrass jack+ntlug at mylinuxguy.net
Fri Aug 29 08:27:18 CDT 2003


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. 

jack 




More information about the Discuss mailing list