Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/04/2012, 05:00
luisgzafra
 
Fecha de Ingreso: noviembre-2010
Mensajes: 1.242
Antigüedad: 13 años, 5 meses
Puntos: 73
Respuesta: Detectar subdominio .htaccess

¿Podría hacerlo así?:
Código Apache:
Ver original
  1. RewriteEngine on
  2. rewriteCond %{HTTP_HOST} !^www\.
  3. rewriteCond %{HTTP_HOST} ^(.+)\.dominio\.com
  4. rewritebase (.*).domain.com subdomains/$1 [L]
__________________
:)