How to get file directory trough .htaccess by using RewriteRule ^(.*)$ ?id=$1 [L,QSA]
?
If .htaccess is located in http://localhost/some/dir/.htaccess
and I'm opening http://localhost/some/dir/here/I/use/RewriteRule/
, how I detect value /some/dir/
without using RewriteBase
and without manual adding %{DOCUMENT_ROOT}/some/dir/
, like value localhost
I get trough %{HTTP_HOST}
?