I'm running an apache server and trying to do uri translation in content handler.
For example, "/foo" should be translated to "/apache/htdocs/foo/index.html". However, I can't simply attach "index.html" and then see if it exists, because it could have some other names such as "index.html.en". So I suppose there's some function that can be used for this purpose. I've tried function "lookup_uri", but it didn't do the translation.
Any ideas? Thanks.
For example, "/foo" should be translated to "/apache/htdocs/foo/index.html". However, I can't simply attach "index.html" and then see if it exists, because it could have some other names such as "index.html.en". So I suppose there's some function that can be used for this purpose. I've tried function "lookup_uri", but it didn't do the translation.
Any ideas? Thanks.