Thank you for this great MOD! :up:
My question: I use Google Webmaster tools. That shows me double content and double tags as issue.
PHP Code:
/no/showthread.php?p=428722
/showthread.php?language=no&p=428722
/tags.php?language=tr&tag=test
/tr/tags.php?tag=test
/pt/tags.php?tag=test
/tags.php?tag=test&language=pt
O, when I use your
https://vborg.vbsupport.ru/showpost....67&postcount=2
Quote:
I have indexed pages from old links type (with language=) and want switch to SEO links- what to do?
First make SEO links available. After that add this rule to .htaccess (before SEO rules):
Code:
|
PHP Code:
RewriteCond %{QUERY_STRING} (hl=|language=)(zh-TW|zh-CN|..)
RewriteRule ^(.*)$ http://%{HTTP_HOST}/%2/$1? [L,R=301]
then I get links like .../no/showthread.php or .../no/tags.php and a loop. I have no VBSEO installed, only the free vBSEO Sitemap Generator. Here my .htaccess:
PHP Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^open-speech.com$
RewriteRule ^(.*)$ "http\:\/\/www\.open\-speech\.com\/$1" [R=301,L]
RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ index.php?language=$1 [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ $2?language=$1 [L,QSA]
RewriteCond %{QUERY_STRING} (hl=|language=)(zh-TW|zh-CN|..)
RewriteRule ^(.*)$ http://%{HTTP_HOST}/%2/$1? [L,R=301]