Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

how to respond to .../bar with bar.html and .../bar/ with bar/index.html?

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


ms419 at freezone

Nov 2, 2009, 3:38 PM

Post #1 of 1 (84 views)
Permalink
how to respond to .../bar with bar.html and .../bar/ with bar/index.html?

I have files foo.html, bar.html, and bar/index.html

I want the URLs,

* http://example.com/.../foo to respond with foo.html,
* http://example.com/.../bar to respond with bar.html,
* http://example.com/.../bar/ to respond with bar/index.html

I configured, "Options +MultiViews", and sure enough,
http://example.com/.../foo responds with foo.html

- however http://example.com/.../bar redirects to
http://example.com/.../bar/ which responds with bar/index.html

I tried playing with DirectorySlash and "Options -Indexes" - no luck : (

Judging by mod_negotiation.c, line 3091, it looks like MultiViews won't
map http://example.com/.../bar to bar.html as long as the directory
"bar" exists?

Any other way to accomplish what I describe?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.