Redirección dominio...
Avisos
Vaciar todo

Redirección dominios  

 
Pedro
 Pedro
Estimable Member

Estoy intentando redireccionar el dominio nohaypanparatantochorizo.com a publicoscopia.com (con publicoscopia.es, ya lo he conseguido) y después de configurarlo en mi panel he modificado mi htaccess con el siguiente código y no funciona:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^publicoscopia.com
RewriteRule (.*) http://www.publicoscopia.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^publicoscopia.es$ [OR]
RewriteCond %{HTTP_HOST} ^www.publicoscopia.es$
RewriteRule ^(.*)$ "http://www.publicoscopia.com/$1" [R=301,L]

RewriteCond %{HTTP_HOST} ^nohaypanparatantochorizo.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.nohaypanparatantochorizo.com$
RewriteRule ^(.*)$ "http://www.publicoscopia.com/$1" [R=301,L]

Gracias de antemano.

Citar
Respondido : 07/11/2013 5:18 pm
Jhon
 Jhon
Soporte CMS Webempresa Moderator

Hola pedro

El código de redirección debe ser el primero que se ejecute, es posible que se encuentre en la parte inferior del archivo .htaccess y por eso no redirecciona.

Saludos

ResponderCitar
Respondido : 07/11/2013 6:15 pm

wpdoctor-revisa-la-salud-de-tu-wordpress

Pedro
 Pedro
Estimable Member

Hola Jhon,

Estaba en la parte inferior pero lo he subido y esto es como ha quedado:

##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
# mod_rewrite in use

RewriteEngine On
RewriteCond %{HTTP_HOST} ^publicoscopia.com
RewriteRule (.*) http://www.publicoscopia.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^publicoscopia.es$ [OR]
RewriteCond %{HTTP_HOST} ^www.publicoscopia.es$
RewriteRule ^(.*)$ "http://www.publicoscopia.com/$1" [R=301,L]

RewriteCond %{HTTP_HOST} ^nohaypanparatantochorizo.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.nohaypanparatantochorizo.com$
RewriteRule ^(.*)$ "http://www.publicoscopia.com/$1" [R=301,L]

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
# Block out any script that includes a tag in URL
RewriteCond %{QUERY_STRING} (|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)

# RewriteBase /

########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|.php|.html|.htm|.feed|.pdf|.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section

¿Que te parece? ¿Dónde crees esta el error? Muchas gracias.

ResponderCitar
Respondido : 07/11/2013 6:27 pm
Jhon
 Jhon
Soporte CMS Webempresa Moderator

HOla Pedro

La redirección debe estar antes que todo

Es decir, el siguiente código es el de redirección :

RewriteCond %{HTTP_HOST} ^nohaypanparatantochorizo.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.nohaypanparatantochorizo.com$
RewriteRule ^(.*)$ "http://www.publicoscopia.com/$1" [R=301,L]

Saludos.

ResponderCitar
Respondido : 07/11/2013 8:24 pm

Gestor de Contraseñas - VPN Conexión Segura - Gestor 2FA (Segundo Factor de Autenticación

Pedro
 Pedro
Estimable Member

Hola Jhon,

No acabo de entenderlo muy bien. ¿Te refieres a la posición? Piensa que tambien tengo otra redirección en el caso de la (.es) que redirecciona a la (.com). Me he perdido !! Gracias.

ResponderCitar
Respondido : 07/11/2013 8:32 pm
Luis Mendez Alejo
 Luis Mendez Alejo
Miembro Admin

Hola Pedro,

Los 3 códigos de redirección que muestras son correctos pero deben figurar al comienzo del archivo .htaccess para que funcionen.

Además el archivo .htaccess que contenga esas redirecciones debe estar en la carpeta /public_html y NO en otro carpeta.

Haría falta saber como está creada la redirección en tu cPanel (captura).

Saludos

ResponderCitar
Respondido : 07/11/2013 9:29 pm

optimiza-automaticamente-todas-las-imagenes-de-tu-wordpress

Pedro
 Pedro
Estimable Member

Hola Luis,

Te adjunto las capturas del cpanel y el código en esta posición ¿es correcto?
Muchas gracias.

##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

# mod_rewrite in use

RewriteEngine On
RewriteCond %{HTTP_HOST} ^publicoscopia.com
RewriteRule (.*) http://www.publicoscopia.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^publicoscopia.es$ [OR]
RewriteCond %{HTTP_HOST} ^www.publicoscopia.es$
RewriteRule ^(.*)$ "http://www.publicoscopia.com/$1" [R=301,L]

RewriteCond %{HTTP_HOST} ^nohaypanparatantochorizo.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.nohaypanparatantochorizo.com$
RewriteRule ^(.*)$ "http://www.publicoscopia.com/$1" [R=301,L]

#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
# Block out any script that includes a tag in URL
RewriteCond %{QUERY_STRING} (|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)

# RewriteBase /

########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|.php|.html|.htm|.feed|.pdf|.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section

ResponderCitar
Respondido : 07/11/2013 10:08 pm
Luis Mendez Alejo
 Luis Mendez Alejo
Miembro Admin

Hola Pedro,

Lo veo todo correcto.

Escribo http://nohaypanparatantochorizo.com y me redirige automáticamente a http://www.publicoscopia.com/

Te recomiendo limpies la caché de tu navegador y de dns.

La caché del navegador es un registro temporal de la actividad de Internet, que incluye imágenes, sonidos y descargas; se almacena en un archivo en el PC durante un período breve de tiempo.

Para vaciar la caché en Internet Explorer 6.x - 7:

1. Cierre todas las ventanas de navegación abiertas.
2. Haga clic en el menú 'Herramientas' situado en la parte superior del navegador y seleccione 'Opciones de Internet'.
3. Haga clic en la pestaña 'General', situada en la parte superior del cuadro de diálogo.
4. Haga clic en 'Eliminar archivos' en 'Archivos temporales de Internet'.
5. Seleccione 'Eliminar todo el contenido sin conexión' marcando la casilla correspondiente.
6. Haga clic en 'Aceptar'.

Para vaciar la caché en Internet Explorer 8:

1. Cierre todas las ventanas de navegación abiertas.
2. Haga clic en el menú 'Herramientas' situado en la parte superior del navegador y seleccione 'Opciones de Internet'.
3. Haga clic en la pestaña 'General', situada en la parte superior del cuadro de diálogo.
4. Haga clic en 'Eliminar' verificar que estén tildadas al menos en 'Archivos temporales de Internet', "Cookies", "Historial"
5. Haga clic en 'Eliminar'.

Para vaciar la caché en Mozilla Firefox:

1. Cierre todas las ventanas de navegación abiertas.
2. Haga clic en el menú 'Herramientas' situado en la parte superior del navegador y seleccione 'Preferencias'.
3. Haga clic en 'Privacidad'.
4. Haga clic en 'Limpiar' junto a 'Caché'.
5. Haga clic en 'Aceptar'.

Para vaciar la caché en Mozilla y Netscape:

1. Cierre todas las ventanas de navegación abiertas.
2. Haga clic en el menú 'Editar' en la parte superior de su navegador y seleccione 'Preferencias'.
3. Haga clic en el signo '+' que aparece junto a 'Avanzadas'.
4. Seleccione 'Caché' en 'Avanzadas'.
5. Haga clic en 'Borrar caché'.
6. Haga clic en 'Aceptar'.

Para vaciar la caché en Safari:

1. Cierre todas las ventanas de navegación abiertas.
2. Abra el menú 'Safari' en la barra de herramientas de su navegador.
3. Seleccione 'Vaciar caché'.
4. Haga clic en 'Vaciar' en el cuadro de diálogo.

Para vaciar la caché en Google Chrome:

1. Cierre todas las ventanas de navegación abiertas.
2. Abra el menú de Herramientas.
3. Seleccione 'Eliminar datos de navegación'.
4. Seleccione el periodo en "Eliminar datos de este periodo" (se aconseja elegir "todo") y pulse en "Eliminar datos de navegación".

Para vaciar la caché en Opera:

1. Cierre todas las ventanas de navegación abiertas.
2. Abra el menú Herramientas.
3. Seleccione Eliminar información privada.
4. Hacer clic en Opciones detalladas.
5. Seleccionar la casilla de verificación Borrar todo el Caché
6. Hacer clic en Eliminar.

Para limpiar la caché de DNS en su ordenador y volver a cargar el sitio web, le facilitamos las instrucciones de como hacerlo:

En Windows:
- Inicio - Ejecutar - CMD y pulsamos enter.
- Luego ponemos el comando: ipconfig /flushdns y pulsamos enter.

En Mac:
- Aplicaciones - Utilidades - Terminal - ejecutar un:
- dscacheutil -flushcache

En Linux:
- sudo aptitude install nscd
- sudo /etc/init.d/nscd restart

Saludos

ResponderCitar
Respondido : 07/11/2013 10:28 pm

Pedro
 Pedro
Estimable Member

Ahora si !!! Muchisimas gracias. Saludos.

ResponderCitar
Respondido : 07/11/2013 10:30 pm