Para mas información les dejo el htaccess completo:
Código XML:
Ver original<IfModule mod_rewrite.c>
RewriteEngine on
Redirect 301 /assets/img/imagen.jpg /uploads/img/paginas/imagen.jpg
Redirect 301 /assets/img/imagen.png /uploads/img/paginas/imagen.png
RewriteCond %{HTTP_HOST} ^www.dominio.com [NC]
RewriteRule ^(.*)$ http://dominio.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule deflate_module>
# Enable compression for the following file types.
AddOutputFilterByType \
DEFLATE \
application/javascript \
text/css \
text/html \
text/javascript \
text/plain \
text/xml \
image/x-icon
</IfModule>
<IfModule mod_headers.c>
# WEEK
<FilesMatch "\.(jpg|jpeg|png|gif|swf|woff2|woff|ico|js|css)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
</IfModule>