Skip to content

Instantly share code, notes, and snippets.

@chelsiejohnston
Created March 20, 2016 16:40
Show Gist options
  • Save chelsiejohnston/d0e09b23657db04c1f5e to your computer and use it in GitHub Desktop.
Save chelsiejohnston/d0e09b23657db04c1f5e to your computer and use it in GitHub Desktop.
.htaccess
RewriteEngine On # Turn on the rewriting engine
RewriteCond %{HTTP_HOST} ^(www\.)?example\.org$ [NC]
RewriteRule ^(.*)$ http://example.org/docroot/$1
RewriteRule ^(.*)$ docroot/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment