Skip to content

Instantly share code, notes, and snippets.

@sebolio
Created December 10, 2014 23:40
Show Gist options
  • Save sebolio/4d1f1e51863ac6b5ff9e to your computer and use it in GitHub Desktop.
Save sebolio/4d1f1e51863ac6b5ff9e to your computer and use it in GitHub Desktop.
Dominios comodín en Apache
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