Tengo 2 dominios que están apuntados al mismo servidor, estoy usando un CMS, Joomla.
Bueno en una carpeta tengo lo que sería el dominio 1, y en el root tengo el dominio 2.
Mi problema surge cuando quiero lograr que las URL´s sean amigables, ya que todas las páginas muestran el mismo contenido por la siguiente regla:
Código:
RewriteCond %{REQUEST_URI} ^(/component/option,com) {NC,OR}
Código:
Lo que quiero lograr es una regla para que las urls me muestren lo que tendrían que mostrar, ya que la URL me la muestra bien, pero el contenido es siempre el de INDEX.phpRewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ {NC}
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php El .htaccess completo es el siguiente:
Código:
RewriteEngine On
Código:
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} ^midominio1.com.ar [NC]
RewriteCond %{REQUEST_URI} !/midominio1/
RewriteRule ^(.*)$ http://midominio1.com.ar/midominio1/index.html [L,R=301]
RewriteCond %{HTTP_HOST} ^midominio1.com [NC]
RewriteCond %{REQUEST_URI} !/midominio1/
RewriteRule ^(.*)$ http://midominio1.com.ar/midominio1/index.html [L,R=301]
RewriteCond %{HTTP_HOST} ^www.midominio1.com.ar [NC]
RewriteCond %{REQUEST_URI} !/midominio1/
RewriteRule ^(.*)$ http://midominio1.com.ar/midominio1/index.html [L,R=301]
RewriteCond %{REQUEST_URI} /productos/
RewriteCond %{REQUEST_URI} .html
RewriteCond %{HTTP_HOST} !midominio1.com.ar [NC]
RewriteRule ^productos/(.*)/([[0-9]{0,3})-(.*).html$ index.php?que_pagina=us_producto_detalle.php&PRO_ID=$2
RewriteCond %{REQUEST_URI} /productos/
RewriteCond %{REQUEST_URI} !.html
RewriteCond %{HTTP_HOST} !midominio1.com.ar [NC]
RewriteRule ^productos/([[0-9]{0,3})-(.*)$ index.php?que_pagina=us_home_categoria.php&CAT_ID=$1
RewriteCond %{REQUEST_URI} /novedades/
RewriteCond %{REQUEST_URI} !.html
RewriteCond %{HTTP_HOST} !midominio1.com.ar [NC]
RewriteRule ^(.*)$ index.php?que_pagina=us_home_novedades.php
RewriteCond %{REQUEST_URI} /novedades/
RewriteCond %{REQUEST_URI} .html
RewriteCond %{HTTP_HOST} !midominio1.com.ar [NC]
RewriteRule ^novedades/([[0-9]{0,3})-(.*).html$ index.php?que_pagina=us_home_novedades_detalle.php&NOV_ID=$1
RewriteCond %{REQUEST_URI} !productos/
RewriteCond %{REQUEST_URI} !novedades/
RewriteCond %{REQUEST_URI} .html
RewriteCond %{HTTP_HOST} !midominio1.com.ar [NC]
RewriteRule ^(.*)/(.*).html$ index.php?que_pagina=us_home_$2.php
#ESTO ES DEL DOMINIO DEL ROOT
RewriteRule ^(content/|component/) index.php
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
RewriteCond %{REQUEST_URI} /productos
RewriteRule ^(.*)$ /
RewriteCond %{REQUEST_URI} /servicios
RewriteRule ^(.*)$ /
RewriteCond %{REQUEST_URI} /empresa
RewriteRule ^(.*)$ /
RewriteCond %{REQUEST_URI} /novedades
RewriteRule ^(.*)$ /
RewriteCond %{REQUEST_URI} /midominio1
RewriteRule (.*) http://midominio1.com.ar/midominio1/index.html [R=301,L]

