Little Bug when using flag :P
Sep 12, 2014 7:40 pm by d.hingorani86
Sep 12, 2014 7:40 pm by d.hingorani86
Hello,
We just noticed increase in 404 errors on using Brazilian flag
http://www.domain.com/da/3911Page.php
http://www.domain.com/it/3922Page.php
http://www.domain.com/ar/3933Page.php
http://www.domain.com/da/pt/3944Page.php <---- ?? (Brazalian flag) 404 Not Found Error.
We have corrected this by using Portuguese flag but now we need to correct 10,000 404 Error links in Google by creating a forwarded in htaccess like below:
RewriteCond %{HTTP_HOST} "domain.com/da/pt/XXXXPage.php"$
RewriteRule ^(.*)$ http://www.domain.com/pt/XXXXPage.php [R=301,L]
RewriteCond %{HTTP_HOST} "domain.com/it/pt/XXXXPage.php"$
RewriteRule ^(.*)$ http://www.domain.com/pt/XXXXPage.php [R=301,L]
Please provide correct lines to be included in htaccess to convert
"domain.com/it/pt/XX" ---> "domain.com/pt/XX"
Your suggestions and help will be highly appreciated.
Regards,
Danish.
Re: Little Bug when using flag :P
Sep 12, 2014 7:56 pm by Edvard
Sep 12, 2014 7:56 pm by Edvard
Please use this rules:
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L]
Re: Little Bug when using flag :P
Sep 13, 2014 5:26 pm by d.hingorani86
Sep 13, 2014 5:26 pm by d.hingorani86
This is wrong.
I am getting
"domain.com/it/pt/XX" ---> "domain.com/it/XX"
I want:
"domain.com/it/pt/XX" ---> "domain.com/pt/XX"
Please help.
Re: Little Bug when using flag :P
Sep 13, 2014 5:30 pm by Edvard
Sep 13, 2014 5:30 pm by Edvard
Replace $1 with $2.
SIMILAR TOPICS
flag doesn't click | Dec 10, 2018 6:52 am | Replies: 3 | Post by: maga |
Recent Move - Broken Flag Icons | Mar 2, 2018 10:02 am | Replies: 1 | Post by: datalink |
Flag Order | May 8, 2017 3:39 pm | Replies: 3 | Post by: Melvins138 |
Flag alignment | Jun 20, 2016 8:16 am | Replies: 7 | Post by: dwaynejohnson |
Flag icons do not display | Sep 8, 2016 5:26 pm | Replies: 3 | Post by: ebwebwork |