This is a follow-up to this question.
I am trying to build a mod_rewrite rule where the rewriting target is an absolute path outside the web root, like
RewriteRule ^manual(/(.*))?$ /www/htdocs/customername/manual/$2 [L]
I need to do this because I can’t use Alias in a .htaccess context (shared hosting).
There are responses hinting at this not being possible at all.
Is this true? I can’t find any clear info in the manual.
Could somebody clarify when absolute paths are possible, and when they are not?
It is certainly possible to use absolute file paths in your server config.
You won’t be able to do that in a
.htaccessfile though, since that would give you access to read files outside your document root, even files from other customers that were supposed to be protected by a<Location ...>block.