Skip to content

Instantly share code, notes, and snippets.

@CroneKorkN
Created July 14, 2015 10:15
Show Gist options
  • Save CroneKorkN/cc01547adb72e4447828 to your computer and use it in GitHub Desktop.
Save CroneKorkN/cc01547adb72e4447828 to your computer and use it in GitHub Desktop.
HTACCESS to redirect virtual ".dev"-domains to corresponding subfolder
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .*\.dev$ [NC]
RewriteCond %{ENV:REDIRECT_STATUS} !200
RewriteRule ^.*$ %{HTTP_HOST}%{REQUEST_URI} [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment