Created
December 10, 2014 23:40
-
-
Save sebolio/4d1f1e51863ac6b5ff9e to your computer and use it in GitHub Desktop.
Dominios comodín en Apache
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
RewriteEngine On | |
RewriteBase / | |
# Dominios desarrollo (usado en el .htaccess de ida) | |
RewriteCond %{HTTP_HOST} (.+)\.dev\.ida\.cl | |
RewriteCond %{REQUEST_URI} !^/dev | |
RewriteRule (.*) /dev/%1/$1 [L,NC] | |
#otros, como Wordpress etc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment