Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing ../

Status
Not open for further replies.

tribalcog

Technical User
May 3, 2002
4
NZ
I am not quite sure what to search for this so apologies if this question is answered elsewhere. Anyway, to my question.

On my webserver I want to have it so that if people miss the trailing slash on a URL it will still go to the directory. For example:


If 'whatever' is a directory BUT I don't put in the last / at the moment I get a 404. How can I make this work? I am running Apache 1.3x on RedHat.

Thanks HEAPS in advance,

Beren
 
Well it's obvious to me, you don't have that feng shui thing happening. Open httpd.conf and look at your directory containers. If they look like this:

<Directory &quot;/path/to/dir/&quot;>

Then get rid of the trailing slash. When you have a trailing slash, you force the use of it in the url. Hopefully, this will get your chi centered. :)
 
Thanks! My shakras are now in alignment - and my server will be reacha state of Nivana soon - desbite running Linux and not UNIX.

B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top