HTACCES url problems - 301 redirect does not work on a page

1

I redirected 301 of some of the url's from my site recently and started to give the image problem:

My.htacceslookslikethis:

RewriteEngineOnOptionsAll-IndexesRewriteCond%{SCRIPT_FILENAME}!-fRewriteCond%{SCRIPT_FILENAME}!-dRewriteRule^(.*)$index.php?url=$1RewriteCond%{HTTP_HOST}^www.(.*)[NC]RewriteRule^(.*)http://%1/$1[R=301,L]RewriteBase/RewriteCond%{REQUEST_URI}/+[^.]+$RewriteRule^(.+[^/])$%{REQUEST_URI}/[R=301,L]ErrorDocument404/404<IfModulemod_expires.c>ExpiresActiveOnExpiresByTypeimage/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

Q.: Help me, I do not think the reason for this error anywhere: /

    
asked by anonymous 06.10.2016 / 13:32

1 answer

0

Maybe this format works

Redirect 301 /blog http://meusitenovo.com.br/blog/
    
06.10.2016 / 20:50