Quantcast
Channel: Apache URL rewrite does not mask subdirectories - Webmasters Stack Exchange
Viewing all articles
Browse latest Browse all 2

Apache URL rewrite does not mask subdirectories

$
0
0

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]

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images