2
I did 301 redirects of some of the url’s of my site recently and started giving the image problem:
My . htacces is like this:
RewriteEngine On
Options All -Indexes
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1
RewriteCond %{HTTP_HOST} ^www.(.*) [NC]
RewriteRule ^(.*) http://%1/$1 [R=301,L]
RewriteBase /
RewriteCond %{REQUEST_URI} /+[^.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
ErrorDocument 404 /404
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
<IfModule mod_headers.c>
Header unset Etag
Header unset Last-Modified
</IfModule>
#REDIRECIONAMENTOS ***********
RewriteCond %{HTTP_HOST} ^MEUURLANTIGO\.com\.br$ [OR]
RewriteCond %{HTTP_HOST} ^www\.MEUURLANTIGO\.com\.br$
RewriteRule ^/?$ "http\:\/\/MEUURLNOVO\.com\.br\/" [R=301,L]
#MATERIAIS
RewriteCond %{HTTP_HOST} ^MEUURLANTIGO\.com\.br$ [OR]
RewriteCond %{HTTP_HOST} ^www\.MEUURLANTIGO\.com\.br$
RewriteRule ^material\-educativo/?$ "http\:\/\/MEUURLNOVO\.com\.br\/materiais\/" [R=301,L]
#BLOG
RewriteCond %{HTTP_HOST} ^MEUURLANTIGO\.com\.br$ [OR]
RewriteCond %{HTTP_HOST} ^www\.MEUURLANTIGO\.com\.br$
RewriteRule ^blog/?$ "http\:\/\/MEUURLNOVO\.com\.br\/blog\/" [R=301,L]
#artigos
RewriteCond %{HTTP_HOST} ^MEUURLANTIGO\.com\.br$ [OR]
RewriteCond %{HTTP_HOST} ^www\.MEUURLANTIGO\.com\.br$
RewriteRule ^blog\/impacto\-da\-internet\-nas\-empresas/?$ "http\:\/\/MEUURLNOVO\.com\.br\/blog\/impacto\-da\-internet\-nas\-empresas\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^MEUURLANTIGO\.com\.br$ [OR]
RewriteCond %{HTTP_HOST} ^www\.MEUURLANTIGO\.com\.br$
RewriteRule ^blog\/5\-otimos\-motivos\-para\-investir\-em\-social\-media/?$ "http\:\/\/MEUURLNOVO\.com\.br\/blog\/5\-otimos\-motivos\-para\-investir\-em\-social\-media\/" [R=301,L]
Obs.: the only one that is working is the blog, the other urls are happening this
P.S.: Help me I don’t think why this mistake is anywhere :/
It would not be pq
.htacces[s]
ta missing aS
? Just to be sure.– edson alves