Forum Archive - Little Bug when using flag :P

Little Bug when using flag :P
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
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
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
Replace $1 with $2.

SIMILAR TOPICS

flag doesn't clickDec 10, 2018 6:52 amReplies: 3Post by: maga
Recent Move - Broken Flag IconsMar 2, 2018 10:02 amReplies: 1Post by: datalink
Flag OrderMay 8, 2017 3:39 pmReplies: 3Post by: Melvins138
Flag alignmentJun 20, 2016 8:16 amReplies: 7Post by: dwaynejohnson
Flag icons do not displaySep 8, 2016 5:26 pmReplies: 3Post by: ebwebwork

Try GTranslate with a free 15 day trial