Ver Mensaje Individual
Antiguo 01-abr-2008, 23:14   #2 (permalink)
j_aroche
ServerNinja: /kick Murphy
j_aroche llegará a ser famoso muy prontoj_aroche llegará a ser famoso muy prontoj_aroche llegará a ser famoso muy prontoj_aroche llegará a ser famoso muy prontoj_aroche llegará a ser famoso muy pronto
 
Avatar de j_aroche
 
Fecha de Ingreso: agosto-2006
Ubicación: iPhone: 14.624481,-90.487457
Mensajes: 1.216
Re: .htaccess y multiples mod_rewrite

Prueba con agregando un RewriteCond que compare el dominio antes de hacer el RewriteRule:


Código:
#supongase sitio1
Options FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^sitio1.com 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ index.php?a=$1&b=$2&c=$3&d=$4&e=$5&f=$6& [L,NC]

#supongase sitio2
Options FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^sitio2.com 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/([^/]+)/$ index.php?a=$1&b=$2& [L,NC]
__________________
JavierAroche.com
j_aroche está desconectado   Responder Citando