Created
July 14, 2015 10:15
-
-
Save CroneKorkN/cc01547adb72e4447828 to your computer and use it in GitHub Desktop.
HTACCESS to redirect virtual ".dev"-domains to corresponding subfolder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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