I'm in the process of setting up my Apache (1.3.19) to do content
negotiation. It works, but I've got a small problem that I would like some
help with... :-)
Let's say that I've got a dir named foo, containing three files named bar,
followed by a date in the form YYYYMMDD and then the extension. That is:
/foo/bar.20020126.html
/foo/bar.20020127.html
/foo/bar.20020128.html
If I then request just /foo/bar, I would like Apache to serve the document
with the newest date, in this case /foo/bar.20020128.html - only problem
is, it just serves the first document it encounters in the directory,
/foo/bar.20020126.html.
I've looked over everything I could find via Google on content negotiation
with no luck. Also, I have read Apaches documentation on URL Rewriting
(mod_rewrite), but I really don't understand regexps! :-(
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
negotiation. It works, but I've got a small problem that I would like some
help with... :-)
Let's say that I've got a dir named foo, containing three files named bar,
followed by a date in the form YYYYMMDD and then the extension. That is:
/foo/bar.20020126.html
/foo/bar.20020127.html
/foo/bar.20020128.html
If I then request just /foo/bar, I would like Apache to serve the document
with the newest date, in this case /foo/bar.20020128.html - only problem
is, it just serves the first document it encounters in the directory,
/foo/bar.20020126.html.
I've looked over everything I could find via Google on content negotiation
with no luck. Also, I have read Apaches documentation on URL Rewriting
(mod_rewrite), but I really don't understand regexps! :-(
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org