Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/04/2016, 22:16
quilmes_05
 
Fecha de Ingreso: octubre-2010
Mensajes: 219
Antigüedad: 13 años, 6 meses
Puntos: 2
Respuesta: Redirecion 301 para imagenes

Para mas información les dejo el htaccess completo:
Código XML:
Ver original
  1. <IfModule mod_rewrite.c>
  2.     RewriteEngine on
  3.  
  4.         Redirect 301 /assets/img/imagen.jpg /uploads/img/paginas/imagen.jpg
  5.         Redirect 301 /assets/img/imagen.png /uploads/img/paginas/imagen.png
  6.  
  7.  
  8.     RewriteCond %{HTTP_HOST} ^www.dominio.com [NC]
  9.     RewriteRule ^(.*)$ http://dominio.com/$1 [R=301,L]
  10.  
  11.     RewriteCond %{REQUEST_FILENAME} !-f
  12.     RewriteCond %{REQUEST_FILENAME} !-d
  13.     RewriteRule ^(.*)$ index.php?/$1 [L]
  14. </IfModule>
  15. <IfModule deflate_module>
  16.     # Enable compression for the following file types.
  17.     AddOutputFilterByType            \
  18.      DEFLATE                         \
  19.       application/javascript         \
  20.       text/css                       \
  21.       text/html                      \
  22.       text/javascript                \
  23.       text/plain                     \
  24.       text/xml                       \
  25.       image/x-icon
  26. </IfModule>
  27. <IfModule mod_headers.c>
  28. # WEEK
  29. <FilesMatch "\.(jpg|jpeg|png|gif|swf|woff2|woff|ico|js|css)$">
  30.     Header set Cache-Control "max-age=604800, public"
  31. </FilesMatch>
  32. </IfModule>