The admin setup a subdirectory /sites/default/files/resources
and updated the docroot .htaccess
to point to this subdirectory so that the domain www.example.com
points to it.
I do not have access to the docroot .htaccess
In the browser, www.example.com/resources
shows www.example.com/sites/default/files/resources
What should I add in the subdirectory .htaccess
such that URL shows www.example.com/resources
and uses the index.html
in /sites/default/files/resources/index.html
?
docroot/.htaccess:
RewriteCond %{HTTP_HOST} www.example\.com$
RewriteCond %{REQUEST_URI} !^/sites/default/files/resources/
RewriteRule ^(.*)$ /sites/default/files/resources/$1 [PT,L]
.htaccess
? That isn't the type of change that would usually be made with.htaccess
Usually you would add aVirtualHost
to Apache and set theDocumentRoot
for that virtual host to/sites/default/files/resources
to have the files served from that directory.