Forum Moderators: phranque
I am using php with many [DOCUMENT_ROOT] commands in most all of my sites. Would there be some way I could set up an .htaccess file in the server rood that would redirect internal requests from a sub-directory back to the same directory - but as if it was root? I hope I was clear there.
I've tried the below:
RewriteCond %{REQUEST_URI} ^/subdirectory/.*
RewriteRule ^(.*)$ /subdirectory/$1 [L]
...but no dice. Can someone please point me in the right direction on this? Thanks in advance.
Why don't you use mod_vhost_alias or simply <virtualhost ...>?
You may want to read this link for more info.
[sitepoint.com...]
To Jim: If the link above isn't appropriate, please remove.
I just hated to copy and paste all info gathered there.