RewriteEngine On

#### RewriteEngine On
#### RewriteCond %{HTTPS} off
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
#### RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Now, rewrite any request to the wrong domain to use www.
# [NC] is a case-insensitive match
#### RewriteCond %{HTTP_HOST} !^www\. [NC]
#### RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

php_value max_file_uploads 30



RewriteCond %{QUERY_STRING} PHPSESSID=.*$
RewriteRule .* %{REQUEST_URI}? [R=301,L]




#redirect imgs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)--imgarg-(.*)$ _proy/st/_principal/images/catalogo/argollas/$2 [NC,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)--imgan-(.*)$ _proy/st/_principal/images/anillos/$2 [NC,L]




RewriteRule  ^ac_(.*)(.htm|.html|.php)$  _proy/control.php?&_ESTEAC=AC&_CNFG_SUBPORTAL=DJUEFa&_estesubominio=$0&_estebin=$1\&%{QUERY_STRING} [NC,L]

RewriteRule  ^acsis_(.*)(.htm|.html|.php)$  _proy/control.php?&_ESTEAC=ACS&_CNFG_SUBPORTAL=DJUEFc&_estesubominio=$0&_estebin=$1\&%{QUERY_STRING} [NC,L]

#----------

RewriteRule  ^proveedores/(.*)/(.*)(.html)$  _proy/control.php?&_ESTEAC=AC&_PROVEEDOR=AC&_CNFG_SUBPORTAL=DJUEFa&_estesubominio=$0&_estealias=$1&_estebin=$2\&%{QUERY_STRING} [NC,L]
RewriteRule  ^proveedores/(.*)$  _proy/control.php?&_ESTEAC=AC&_PROVEEDOR=AC&_CNFG_SUBPORTAL=DJUEFa&_estesubominio=$0&_estealias=$1&_estebin=$2\&%{QUERY_STRING} [NC,L]
#----------


#----------
RewriteRule  ^ac-(.*)(.htm|.html|.php)$  _proy/control.php?&_ESTEAC=AC&_CNFG_SUBPORTAL=DJUEFa&_estesubominio=$0&_estebin=$1\&%{QUERY_STRING} [NC,L]

RewriteRule  ^acsis-(.*)(.htm|.html|.php)$  _proy/control.php?&_ESTEAC=ACS&_CNFG_SUBPORTAL=DJUEFc&_estesubominio=$0&_estebin=$1\&%{QUERY_STRING} [NC,L]
#-------



RewriteRule  ^indexv1.html$  _proy/control.php?&_ESTEAC=INDEXV1&_CNFG_SUBPORTAL=DJUEFu&_estaurl=$0&_estebin=$1\&%{QUERY_STRING} [NC,L]

RewriteRule  ^index.html$  _proy/control.php?&_ESTEAC=_INDEXDIRECT&_CNFG_SUBPORTAL=DJUEFu&_estaurl=$0&_estebin=$1\&%{QUERY_STRING} [NC,L]


#RewriteRule  ^(.*).html$  _proy/control.php?&_ESTEAC=_ESDIRECTO&_CNFG_SUBPORTAL=DJUEFu&_estaurl=$0&_estebin=$1\&%{QUERY_STRING} [NC,L]






RewriteRule  ^(.*)--arg(.*)$  _proy/control.php?&_ESTEAC=__ESARGOLLA&_ESTESUB=__SINURL&_CNFG_SUBPORTAL=DJUEFx&_estesubominio=$0&_estapagina=$1&_esteid=$2\&%{QUERY_STRING} [NC,L]




#RewriteRule  ^(.*)--an(.*)$  _proy/control.php?&_ESTEAC=__ESANILLO&_ESTESUB=__SINURL&_CNFG_SUBPORTAL=DJUEFx&_estesubominio=$0&_estapagina=$1&_esteid=$2\&%{QUERY_STRING} [NC,L]




#----------PARA ANILLOS DE COMPROMISO V2------------
RewriteRule  ^(.*)prod-(.*)--sku(.*)$  _proy/control.php?&_ESTEAC=__ESPRODUCTO&_estesubominio=$0&_estapagina=$1&_nombreurl=$2&_esteid=$3\&%{QUERY_STRING} [NC,L]




#----------PARA ARGOLLAS DE COMPROMISO V2------------
RewriteRule  ^(.*)arg-(.*)--sku(.*)$  _proy/control.php?&_ESTEAC=__ESARGOLLAV2&_estesubominio=$0&_estapagina=$1&_nombreurl=$2&_esteid=$3\&%{QUERY_STRING} [NC,L]

#----------PARA CHURUMBELA COMPROMISO V2------------
RewriteRule  ^(.*)chur-(.*)--sku(.*)$  _proy/control.php?&_ESTEAC=__ESCHURUMBELA&_estesubominio=$0&_estapagina=$1&_nombreurl=$2&_esteid=$3\&%{QUERY_STRING} [NC,L]



#----------PARA VISTA REVIEWS------------
RewriteRule  ^(.*)reviews-(.*)--sku(.*)--tipo-(.*)$  _proy/control.php?&_ESTEAC=__ESREVIEW&_estesubominio=$0&_estapagina=$1&_nombreurl=$2&_esteid=$3&tipoprod=$4\&%{QUERY_STRING} [NC,L]


#RewriteRule  ^(.*)modelo-*-(.*)$  _proy/control.php?&_ESTEAC=__ESANILLO&_ESTESUB=__SINURL&_CNFG_SUBPORTAL=DJUEFx&_estesubominio=$0&_estapagina=$1&_esteid=$2\&%{QUERY_STRING} [NC,L]






RewriteRule  ^(.*)--cat(.*)$  _proy/control.php?&_ESTEAC=__ESCATEGORIA&_ESTESUB=__SINURL&_CNFG_SUBPORTAL=DJUEFx&_estesubominio=$0&_estapagina=$1&_esteid=$2\&%{QUERY_STRING} [NC,L]


RewriteRule  ^(.*)--blg(.*)$  _proy/control.php?&_ESTEAC=__ESBLOG&_ESTESUB=__SINURL&_CNFG_SUBPORTAL=DJUEFx&_estesubominio=$0&_estapagina=$1&_esteid=$2\&%{QUERY_STRING} [NC,L]


#Thank you pages
RewriteRule  ^(.*)gracias-por-(.*)$  _proy/control.php?&_ESTEAC=__ESTHANKYOUPAGE&_ESTESUB=__SINURL&_CNFG_SUBPORTAL=DJUEFx&_estesubominio=$0&_estapagina=$1&_esteid=$2\&%{QUERY_STRING} [NC,L]





#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*)$ _proy/control.php?&_ESTEAC=AC&_estaurl=$0&_estebin=$1\&%{QUERY_STRING} [NC,L]
#
#
#


