Ver Mensaje Individual
  #18 (permalink)  
Antiguo 12/02/2015, 15:50
Pajaranny
 
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.