重要:此頁面會使用Cookie (cookies). 使用本網站不關閉瀏覽器中的cookie,即表示您同意使用它。
現在購買! 特點 下載

賺錢與我們聯繫!

如果您想要開始賺錢與貝特聯接 聯盟計畫。
結果 199

主題: 除非目錄不在目錄中,否則

  1. #1
    高級會員
    註冊日期
    2010年6月
    帖子
    276

    Default 除非目錄不在目錄中,否則

    我在虛擬資料夾和.htacaccess規則中有一些頁面可以切換Lang並設定VBET_Outside,這些工作很棒,但我也有個頁面是site.com/pagename.html不工作的頁面,它們會重新導向至非2個字元的頁面(預設值)

    此規則應容許此工作

    Code:
    RewriteRule ^/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|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|ur|vi|cy|yi)/(.*)?$ $2?language=$1&vbet_outside=true [L,QSA]

  2. #2
    高級會員
    註冊日期
    2010年6月
    帖子
    276

    Default

    也在建立自己的 hreflang 程式碼,但 VBET 會在 程式碼中,將現行 lang 新增至我的 URL !

    Code:
    <link rel="alternate" hreflang="x-default" href="https://www.allfreechips.com/es/casino_guide/test-page.html">
    不含/es/的Im列印

  3. #3
    高級會員
    註冊日期
    2010年6月
    帖子
    276

    Default

    這裡是完整的程式碼工作,不使用英文也會是預設的

    Code:
    <link rel="canonical" href="https://www.allfreechips.com/no/">
    <link rel="alternate" hreflang="x-default" href="https://www.allfreechips.com/no/" />
    <link rel="alternate" hreflang="nl" href="https://www.allfreechips.com/nl/" />
    <link rel="alternate" hreflang="fr" href="https://www.allfreechips.com/fr/" />
    <link rel="alternate" hreflang="de" href="https://www.allfreechips.com/de/" />
    <link rel="alternate" hreflang="it" href="https://www.allfreechips.com/it/" />
    <link rel="alternate" hreflang="no" href="https://www.allfreechips.com/no/" />
    <link rel="alternate" hreflang="es" href="https://www.allfreechips.com/es/" />
    <link rel="alternate" hreflang="ru" href="https://www.allfreechips.com/ru/" />
    最後編輯者 ctrenks; 24-09-1917:42.

  4. #4
    米哈爾 Podbielski(vBET職員) vBET's Avatar
    註冊日期
    2009年10月
    帖子
    3,037

    Default

    您好。

    你這裡有什麼問題嗎? 如果您要新增部分將不翻譯的部分,則您可以使用 notranslate bbcode. 我不確定它會不會剖析URL ,或者也不知道,但只要將整個鏈結包覆在中, notranslate bbcode. 如果不行的話,我就另找辦法,應該有一個。 在配置中,您也可以設定應該忽略的URL -尋找: Translation Options > Ignore URLs

  5. #5
    高級會員
    註冊日期
    2010年6月
    帖子
    276

    Default

    2個問題-

    不在資料夾中的頁面不會翻譯,它們會重新導向至英文頁面-範例- https://www.allfreechips.com/best-online-casinos.html

    第二個問題是在標頭中新增 langhref ,但 vbet 正在將英文 / 預設鏈結轉換為現行 lang 鏈結,我 dont 認為我可以在標頭中使用 bbcode

  6. #6
    高級會員
    註冊日期
    2010年6月
    帖子
    276

    Default

    正在使用bbcode [url.. 在標頭meta值中不工作

    PHP Code:
    <link rel="canonical" href="https://www.allfreechips.com/">
    <
    link rel="alternate" hreflang="x-default" href="[url]https://www.allfreechips.com/[/url]" />
    <
    link rel="alternate" hreflang="nl" href="https://www.allfreechips.com/nl/" />
    <
    link rel="alternate" hreflang="fr" href="https://www.allfreechips.com/fr/" />
    <
    link rel="alternate" hreflang="de" href="https://www.allfreechips.com/de/" />
    <
    link rel="alternate" hreflang="it" href="https://www.allfreechips.com/it/" />
    <
    link rel="alternate" hreflang="no" href="https://www.allfreechips.com/no/" />
    <
    link rel="alternate" hreflang="es" href="https://www.allfreechips.com/es/" />
    <
    link rel="alternate" hreflang="ru" href="https://www.allfreechips.com/ru/" /> 

  7. #7
    高級會員
    註冊日期
    2010年6月
    帖子
    276

    Default

    可在這裡使用php bbcode顯示實際來源的Wsa ,您可以看到[URL程式碼顯示在來源中

  8. #8
    高級會員
    註冊日期
    2010年6月
    帖子
    276

    Default

    我們可以將新增至避免程式碼嗎?

  9. #9
    米哈爾 Podbielski(vBET職員) vBET's Avatar
    註冊日期
    2009年10月
    帖子
    3,037

    Default

    我會在首相的協助下協助你

標籤這個主題

發帖權限

  • 可能不會 發表新主題
  • 可能不會 發表回复
  • 可能不會 上傳附件
  • 可能不會 編輯您的文章
  •