Foros del Web » Administración de Sistemas » Shared Hosting y VPS »

Redirección 302. ¿Por qué?

Estas en el tema de Redirección 302. ¿Por qué? en el foro de Shared Hosting y VPS en Foros del Web. Buenas tardes amigos, De repente, al intentar analizar mi página web desde herramientas webmaster, google me dice que tengo una redirección 302: http://www.xxxxxx.com/?ce1c36a0 Se puede ...
  #1 (permalink)  
Antiguo 01/02/2015, 15:01
 
Fecha de Ingreso: septiembre-2012
Mensajes: 149
Antigüedad: 11 años, 7 meses
Puntos: 3
Redirección 302. ¿Por qué?

Buenas tardes amigos,

De repente, al intentar analizar mi página web desde herramientas webmaster, google me dice que tengo una redirección 302:

http://www.xxxxxx.com/?ce1c36a0

Se puede saber de donde narices a salido eso..

He mirado en .htaccess y todo ok, he mirado código y to ok. ¿A que se puede deber?
  #2 (permalink)  
Antiguo 01/02/2015, 16:56
Avatar de lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 10 años, 9 meses
Puntos: 401
Respuesta: Redirección 302. ¿Por qué?

La redirección 302 es una redirec... temporal. Das pocos datos del sitio afectado, asi que supongo que sera algún enlace que has colocado en tu web o blog.
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-
  #3 (permalink)  
Antiguo 02/02/2015, 08:58
Avatar de franciscomarin  
Fecha de Ingreso: junio-2009
Ubicación: Terrassa, BCN, CAT
Mensajes: 2.414
Antigüedad: 14 años, 9 meses
Puntos: 327
Respuesta: Redirección 302. ¿Por qué?

¿Cuando accedes a esa URL a donde te lleva? ¿Está esa URL en tu sitemap?
  #4 (permalink)  
Antiguo 02/02/2015, 09:06
 
Fecha de Ingreso: enero-2015
Mensajes: 205
Antigüedad: 9 años, 2 meses
Puntos: 18
Respuesta: Redirección 302. ¿Por qué?

Pues es posible que hayas instalado un theme nulled o plugin nulled o similar y que tenga algun bichito, que haga esa redirección.

O bien que te hayan infectado la web y te hayan puesto algo de eso.

Aunque esto último lo dudo,

A que url redirecciona?
  #5 (permalink)  
Antiguo 03/02/2015, 04:35
 
Fecha de Ingreso: septiembre-2012
Mensajes: 149
Antigüedad: 11 años, 7 meses
Puntos: 3
Respuesta: Redirección 302. ¿Por qué?

http://www.xxxxxx.com/?ce1c36a0

ahí redirecciona.

No está en el sitemap.

He pensado como habeis dicho, en descargar toda la web y pasarle el nod32.

Si encuentro la solución os comento, que esto de salir el sábado... aún estoy pagando las consecuencias.
  #6 (permalink)  
Antiguo 03/02/2015, 05:06
Avatar de franciscomarin  
Fecha de Ingreso: junio-2009
Ubicación: Terrassa, BCN, CAT
Mensajes: 2.414
Antigüedad: 14 años, 9 meses
Puntos: 327
Respuesta: Redirección 302. ¿Por qué?

¿Una redirección a la misma página? Entonces lo que se crearía sería un bucle hasta que el navegador se aburre y te muestra el bucle. ¿Es esto así?

¿Que tienes en el .htaccess?
  #7 (permalink)  
Antiguo 06/02/2015, 07:29
Avatar de WebTech
Hosting Moderator
 
Fecha de Ingreso: octubre-2005
Ubicación: East Coast
Mensajes: 5.399
Antigüedad: 18 años, 6 meses
Puntos: 162
Respuesta: Redirección 302. ¿Por qué?

Suena a que te han inyectado código y están redirigiendo tu web hacia otro lado. Pega el contenido de tu .htaccess aquí y lo miramos.
__________________
Infranetworking.com - Expertos en Hosting Multidominio, Cloud Hosting, Servidores Dedicados y Administración de Servidores Linux
  #8 (permalink)  
Antiguo 06/02/2015, 16:38
 
Fecha de Ingreso: septiembre-2012
Mensajes: 149
Antigüedad: 11 años, 7 meses
Puntos: 3
Respuesta: Redirección 302. ¿Por qué?

Por ejemplo al intentar guardar mi página en WayBack Machine:
http://web.archive.org/

Me dice: "Tu página tiene un bucle de redireccionamiento".

Cita:
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##

##
# 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 %{THE_REQUEST} ^(GET|HEAD)\ /index\.php/[^\ ]+

RewriteRule ^index\.php/(.*)$ /$1 [L,R=301]


## 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 base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%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})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.votatuprofesor.com$ [NC]
RewriteRule ^(.*)$ http://www.votatuprofesor.com/$1 [L,R=301]

## End - Custom redirects

##
# 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.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
Herramientas Webmaster me dice más de lo mismo:

Cita:
http://www.votatuprofesor.com/
Tipo de robot de Google: Escritorio (procesamiento solicitado)
Redireccionada el domingo, 1 de febrero de 2015, 12:45:54 GMT-8
Esta URL redirige a:
http://www.votatuprofesor.com/?ce1c36a0
  #9 (permalink)  
Antiguo 06/02/2015, 17:01
Avatar de lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 10 años, 9 meses
Puntos: 401
Respuesta: Redirección 302. ¿Por qué?

Que panel de control usas?
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-
  #10 (permalink)  
Antiguo 06/02/2015, 17:27
 
Fecha de Ingreso: septiembre-2012
Mensajes: 149
Antigüedad: 11 años, 7 meses
Puntos: 3
Respuesta: Redirección 302. ¿Por qué?

Cita:
Iniciado por lauser Ver Mensaje
Que panel de control usas?
Que mal sabe siendo informático no entender una pregunta.
  #11 (permalink)  
Antiguo 06/02/2015, 17:56
Avatar de lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 10 años, 9 meses
Puntos: 401
Respuesta: Redirección 302. ¿Por qué?

Cita:
Iniciado por Pajaranny Ver Mensaje
Que mal sabe siendo informático no entender una pregunta.
mala interpretacion....editado
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-

Última edición por lauser; 07/02/2015 a las 13:47 Razón: mala interpretacion
  #12 (permalink)  
Antiguo 06/02/2015, 18:13
Avatar de lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 10 años, 9 meses
Puntos: 401
Respuesta: Redirección 302. ¿Por qué?

A lo mejor no sabes que existen redirecciones desde cpanel, plesk, etc... que se ejecutan directamente en apache antes de que tu accedas a tu hosting.
Y que si tu realizas otra posteriormente te lanza un bucle de redireccionamiento. Por eso era mi pregunta.
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-

Última edición por lauser; 07/02/2015 a las 13:46 Razón: mala interpretacion
  #13 (permalink)  
Antiguo 06/02/2015, 18:59
 
Fecha de Ingreso: septiembre-2012
Mensajes: 149
Antigüedad: 11 años, 7 meses
Puntos: 3
Respuesta: Redirección 302. ¿Por qué?

Me referia a que no entendia tu pregunta.
No que hubieras formulado mal la pregunta.

Ahora ya te he entendido, voy a mirar en cpanel es posible que al tener varios dominios apuntando a diferentes carpetas haya cometido algun error.

Gracias ;)
  #14 (permalink)  
Antiguo 06/02/2015, 19:11
Avatar de lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 10 años, 9 meses
Puntos: 401
Respuesta: Redirección 302. ¿Por qué?

Tienes duplicidad en la redirección index.....
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-
  #15 (permalink)  
Antiguo 07/02/2015, 08:03
 
Fecha de Ingreso: septiembre-2012
Mensajes: 149
Antigüedad: 11 años, 7 meses
Puntos: 3
Respuesta: Redirección 302. ¿Por qué?

He anulado la redirección desde el Cpanel. Pero éste lo único que hace es borrar las líneas de la redirección del .htaccess.

De todas formas es cuestión de seguir buscando ahora que ya sé cual puede ser el fallo. Contactaré con soporte de mi hosting por si fuera algo de ellos.
  #16 (permalink)  
Antiguo 10/02/2015, 17:30
 
Fecha de Ingreso: septiembre-2012
Mensajes: 149
Antigüedad: 11 años, 7 meses
Puntos: 3
Respuesta: Redirección 302. ¿Por qué?

Sigo con el mismo problema, es muy extraño, es temporal. Que cosa más rara.
  #17 (permalink)  
Antiguo 11/02/2015, 04:07
Avatar de lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 10 años, 9 meses
Puntos: 401
Respuesta: Redirección 302. ¿Por qué?

Ahora mismo .... he instalado este y funciona a la perfección:

Código .htacces:
Ver original
  1. ##  Can be commented out if causes errors, see notes above.
  2. Options +FollowSymLinks
  3.  
  4. #
  5. #  mod_rewrite in use
  6.  
  7. RewriteEngine On
  8.  
  9. ########## Begin - Rewrite rules to block out some common exploits
  10. ## If you experience problems on your site block out the operations listed below
  11. ## This attempts to block the most common type of exploit `attempts` to Joomla!
  12. #
  13. # Block out any script trying to set a mosConfig value through the URL
  14. RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
  15. # Block out any script trying to base64_encode crap to send via URL
  16. RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
  17. # Block out any script that includes a <script> tag in URL
  18. RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
  19. # Block out any script trying to set a PHP GLOBALS variable via URL
  20. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
  21. # Block out any script trying to modify a _REQUEST variable via URL
  22. RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
  23. # Send all blocked request to homepage with 403 Forbidden error!
  24. RewriteRule ^(.*)$ index.php [F,L]
  25. #
  26. ########## End - Rewrite rules to block out some common exploits
  27.  
  28. #  Uncomment following line if your webserver's URL
  29. #  is not directly related to physical file paths.
  30. #  Update Your Joomla! Directory (just / for root)
  31.  
  32. # RewriteBase /
  33.   RewriteBase /
  34.  
  35. ########## Begin - Joomla! core SEF Section
  36. #
  37. RewriteCond %{REQUEST_FILENAME} !-f
  38. RewriteCond %{REQUEST_FILENAME} !-d
  39. RewriteCond %{REQUEST_URI} !^/index.php
  40. RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
  41. RewriteRule (.*) index.php
  42. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
  43. #
  44. ########## End - Joomla! core SEF Section
  45.  
  46. #lineas para cachear imagenes
  47. #<ifmodule mod_expires.c>
  48. #ExpiresActive On
  49. #ExpiresDefault A604800
  50. #<filesmatch ".(jpg|JPG|gif|GIF|png|PNG|css|CSS|ico|ICO|js|JS)$">
  51. #ExpiresDefault "access plus 7 day"
  52. #</filesmatch>
  53. #</ifmodule>
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-
  #18 (permalink)  
Antiguo 12/02/2015, 15:50
 
Fecha de Ingreso: septiembre-2012
Mensajes: 149
Antigüedad: 11 años, 7 meses
Puntos: 3
Respuesta: Redirección 302. ¿Por qué?

Cita:
Iniciado por lauser Ver Mensaje
Ahora mismo .... he instalado este y funciona a la perfección:

Código .htacces:
Ver original
  1. ##  Can be commented out if causes errors, see notes above.
  2. Options +FollowSymLinks
  3.  
  4. #
  5. #  mod_rewrite in use
  6.  
  7. RewriteEngine On
  8.  
  9. ########## Begin - Rewrite rules to block out some common exploits
  10. ## If you experience problems on your site block out the operations listed below
  11. ## This attempts to block the most common type of exploit `attempts` to Joomla!
  12. #
  13. # Block out any script trying to set a mosConfig value through the URL
  14. RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
  15. # Block out any script trying to base64_encode crap to send via URL
  16. RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
  17. # Block out any script that includes a <script> tag in URL
  18. RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
  19. # Block out any script trying to set a PHP GLOBALS variable via URL
  20. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
  21. # Block out any script trying to modify a _REQUEST variable via URL
  22. RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
  23. # Send all blocked request to homepage with 403 Forbidden error!
  24. RewriteRule ^(.*)$ index.php [F,L]
  25. #
  26. ########## End - Rewrite rules to block out some common exploits
  27.  
  28. #  Uncomment following line if your webserver's URL
  29. #  is not directly related to physical file paths.
  30. #  Update Your Joomla! Directory (just / for root)
  31.  
  32. # RewriteBase /
  33.   RewriteBase /
  34.  
  35. ########## Begin - Joomla! core SEF Section
  36. #
  37. RewriteCond %{REQUEST_FILENAME} !-f
  38. RewriteCond %{REQUEST_FILENAME} !-d
  39. RewriteCond %{REQUEST_URI} !^/index.php
  40. RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
  41. RewriteRule (.*) index.php
  42. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
  43. #
  44. ########## End - Joomla! core SEF Section
  45.  
  46. #lineas para cachear imagenes
  47. #<ifmodule mod_expires.c>
  48. #ExpiresActive On
  49. #ExpiresDefault A604800
  50. #<filesmatch ".(jpg|JPG|gif|GIF|png|PNG|css|CSS|ico|ICO|js|JS)$">
  51. #ExpiresDefault "access plus 7 day"
  52. #</filesmatch>
  53. #</ifmodule>
He probado con tu .htaccess y funciona correctamente pero me sigue redireccionando, me parece muy extraño.
  #19 (permalink)  
Antiguo 05/03/2015, 16:44
 
Fecha de Ingreso: septiembre-2012
Mensajes: 149
Antigüedad: 11 años, 7 meses
Puntos: 3
Respuesta: Redirección 302. ¿Por qué?

He leído en varios lugares que hay mas usuarios afectados por el mismo problema.

Desde mi Hosting me dicen que ellos no tienen nada que ver.

El Cpanel está limpio, el .htcaccess nuevo y limpio.

He leído que puede ser por la Cookies:

¿Eso tendría sentido?

Con facebook Debug se muestra claramente el problema:

https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.votatuprofesor.com%2Fblo g%2Fitem%2F710-paises-con-la-mejor-educacion

Etiquetas: redireccion
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 00:32.