Jump to content

Backslash always required for URL file access?


kipbenson4

Recommended Posts

I looked through the Apache forum before asking this, but I didn\'t find anything relevant. It\'s similar, but not quite the same as the DirectoryIndex directive problem, I think.

 

I have direcories in my htdocs, so I want to be able to access them in the following ways:

 

http://myserver/sandbox/ (1)

http://myserver/sandbox (2)

 

(1) works like a champ, going to whatever I\'ve specified in DirectoryIndex, but (2) gives a browser error--NOT from Apache.

 

What can I do to auto-insert the backslash so apache doesn\'t think it\'s trying to access a file?

 

Thanks!

Kip

  • 2 weeks later...

 

The first one is a <b>directory</b>. The second is a <b>FILE</b>

 

You need to have a FQDN with DNS for Apache to guess that /blah should redirect to /blah/. Do you have a domain name associated with your webserver?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.