code-tutorial.com

The best resources for developers

Mod-Rewrite loading files behind DocumentRoot. DocumentRoot - DocumentRoot - DocumentRoot.

<Directory "/home/other_files">
  (options)
</Directory>
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

Tags: .htaccess mod-rewrite

Source: By Chad Paulson as answer to the question

This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 3.0


Related code-snippets: