Skip to content

Instantly share code, notes, and snippets.

@WagnerMatos
Created January 4, 2013 09:04
Show Gist options
  • Save WagnerMatos/4451077 to your computer and use it in GitHub Desktop.
Save WagnerMatos/4451077 to your computer and use it in GitHub Desktop.
.htaccess file to fool Drupal 7 in thinking that it is located in the root folder rather than in a subdirectory.
RewriteEngine on
#
# stuff to let through (ignore)
#RewriteCond %{REQUEST_URI} "/folder1/" [OR]
#RewriteCond %{REQUEST_URI} "/folder2/"
RewriteRule (.*) nomad/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment