พีดีเอ

View Full Version : แก้ Bad เปลี่ยนเส้นทาง



Snake
12-03-10, 01:35
สวัสดีไมเคิลใน Google Webmaster Tools ฉันมีการเปลี่ยนเส้นทางบางส่วนที่ไม่ดีแสดงขึ้นภายใต้การรวบรวมข้อมูลแท็บไม่พบ 14,000 ของพวกเขา

นี่คือตัวอย่าง

http://www.example.com/forums/bg/f46/thread-title-24662/?hl=hi

ตรวจสอบส่วนหัวกล่าวว่า 301 เปลี่ยนเส้นทางไปยัง;

http://www.example.com/forums/hi/vbenterprisetranslator_seo.php

ผมไม่ทราบวิธีการที่ Google จะหาหน้าเว็บเหล่านี้ แต่ผมกังวลมากขึ้นว่าทำไมพวกเขา 301 เปลี่ยนเส้นทางไปยัง vbenterprisetranslator_seo.php

คุณมีข้อเสนอแนะ htaccess เพื่อให้สามารถเปลี่ยนเส้นทางไปที่หน้าแปลที่เหมาะสม

ขอบคุณ

vBET
12-03-10, 03:02
ที่ผมเห็นคุณได้ใช้ mod นักแปลเก่า นั่นคือเหตุผลที่จำ Google การเชื่อมโยงผู้ที่มี HL =. นี่คุณจะพบกฎการเปลี่ยนเส้นทางที่เหมาะสม
http://www.vbenterprisetranslator.com/forum/troubleshooting/6-faq.html # post13

Snake
12-03-10, 03:17
ฉันแล้วใช้ที่เปลี่ยนเส้นทางโปรดทราบ URL เหล่านี้มีทั้งไดเรกทอรี / AR / และ? hl = ar ใน URL เพื่อพวกเขาจะรวมกันของทั้ง URL ของ mods

Snake
12-03-10, 13:12
ปัญหานี้จะไม่ปิด WTF

vBET
13-03-10, 01:38
ผ่อนคลาย :.) กรุณาให้ฉันทั้งหมดของคุณไฟล์ htaccess

Snake
13-03-10, 12:40


# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
SetOutputFilter DEFLATE
RewriteEngine On

#RewriteCond %{HTTP_USER_AGENT} ^msnbot [NC]
#RewriteRule .* - [F,L]

RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|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)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forums/ [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|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)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forums/$2 [L,QSA]

RewriteCond %{QUERY_STRING} (hl=|language=)(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|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)
RewriteRule ^(.*)$ http://%{HTTP_HOST}/forums/%2/$1? [L,R=301]

RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule $ vbenterprisetranslator_seo.php [L,QSA]

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

vBET
14-03-10, 03:47
ใส่ hl = กฎก่อนกฎ vBET นี้จะแก้ปัญหาได้ :)

Snake
14-03-10, 17:09
อย่างใดฉันสร้าง 1,000 ของหน้าเนื้อหาที่ซ้ำกัน

เว็บไซต์ : inurl www.computer-juice.com/ : hl = T -- การค้นหา Google?

ผม 301 เปลี่ยนเส้นทางเหล่านี้ไปที่หน้าแรกของ

Google คือการหา URL ของขยะเหล่านี้ได้อย่างไร

มันเป็นเพราะของ mod เก่าหรือไม่

vBET
14-03-10, 18:18
ใช่ -- เดิมคือการสร้างความเชื่อมโยงกับ hl = vBET ก็ไม่เคยมีการเชื่อมโยงดังกล่าว และคุณมีในที่ผิดกฎของคุณที่มีการเปลี่ยนเส้นทางลิงก์เก่า ๆ ตอนนี้เมื่อคุณมีการแก้ไขของ Google จะอยู่กับการเชื่อมโยงที่เหมาะสมเท่านั้น ของสาปแช่งมันสามารถใช้เวลาสำหรับ Google บาง

Snake
14-03-10, 18:25
ขวา แต่ Google จะค้นหาหน้าเว็บที่มี? hl = t ในพวกเขา, T เป็นของตัวเองก็ไม่เคยมีในสคริปต์อย่างใดอย่างหนึ่ง

Snake
14-03-10, 18:38
301 ฉันสามารถเปลี่ยนเส้นทางสตริงแบบสอบถามทั้งหมดที่มี"? hl = T"เพื่อรากฟอรั่มของฉันโปรด?

vBET
14-03-10, 21:15
วางกฎนี้ก่อนที่คนอื่น ๆ :


RewriteCond %{QUERY_STRING} hl=(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|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)
RewriteRule ^(.*)$ http://%{HTTP_HOST}/forums/ [L,R=301]


กรุณาทดสอบมัน!

Snake
14-03-10, 21:38
ฉันไม่ต้องการเปลี่ยนเส้นทาง URL ทั้งหมดที่ผมต้องการจะเปลี่ยนเส้นทางสตริงแบบสอบถามเท่านั้นที่มี? hl = t เพื่อรากของฉัน

ฉันไม่ dont ต้องการ rediret mod URL ของเดิมไปยังรากผมมีความสุขเปลี่ยนเส้นทางไปยัง URL ใหม่ครับโฟลเดอร์

I dont คิดว่าคุณมีความเข้าใจปัญหา

vBET
15-03-10, 21:05
ขออภัยสำหรับความสับสน จะเห็นได้ชัดความผิดของฉัน -- ฉันคิดถึงรายละเอียดนี้ กรุณาใช้กฎนี้ก่อนที่จะกฎระเบียบอื่น ๆ (ทดสอบ) :


RewriteCond %{QUERY_STRING} hl=t
RewriteRule ^(.*)$ http://%{HTTP_HOST}/forums/ [L,R=301]

หนึ่งนี้จะเปลี่ยนเส้นทางของคำขอทั้งหมดที่มี? hl = t เพื่อรากฟอรั่มของคุณ หากคุณต้องการเปลี่ยนเส้นทางไปยังรากของบริการของคุณทั้งหมดแล้วลบ / ฟอรั่มจากกฎ :)
อีกครั้งขออภัยที่ทำให้เข้าใจผิด;)

Automatic Translations (Powered by Google, Microsoft®, Yandex, SDL Language Cloud, IBM Watson and Apertium):
AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translated to other languages thanks to vB Enterprise Translator 4.10.1