久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

圖片的mobile=2 有什么作用

2221 4 1提示:支持鍵盤翻頁<-左 右-> ysx24 發表于 2022-9-28 20:23 帖子模式

手機版上傳的圖片地址末尾的mobile=2  有什么作用,可不可以去掉 達到手機和pc 圖片url完全同步,利于seo 查看全文

    組圖打開中,請稍候......

評論4個評論

yezirui發表于  2023-3-3 19:06:52
ysx24 發表于 2022-9-29 01:17
雖然圖片URL尾部的?mobile=2,其中的mobile=2 已經去掉了,但是它前面的“ ?”還在呀,怎么也去掉
...

p2p下崽器?
crx349發表于  2022-9-29 00:28:11
這個方法可以試試:
/source/class/helper/helper_mobile.php
搜索:

  1. $content = preg_replace_callback("/href="(\w+\.php)(.*?)"/", array(__CLASS__, 'mobileoutput_callback_mobilereplace_12'), $content);
復制代碼

注釋掉

/source/function/function_core.php

搜索:
  1. if(defined('IN_MOBILE') && strpos($string, 'mobile') === false && $islocation) {
  2.                 if (strpos($string, '?') === false) {
  3.                         $string = $string.'?mobile='.IN_MOBILE;
  4.                 } else {
  5.                         if(strpos($string, '#') === false) {
  6.                                 $string = $string.'&mobile='.IN_MOBILE;
  7.                         } else {
  8.                                 $str_arr = explode('#', $string);
  9.                                 $str_arr[0] = $str_arr[0].'&mobile='.IN_MOBILE;
  10.                                 $string = implode('#', $str_arr);
  11.                         }
  12.                 }
  13.         }
復制代碼


注釋掉
試試哦
crx349發表于  2022-9-28 22:25:02
好內容 是seo的根本 地址是浮云呢
  • 關注公眾號
  • 有償服務微信
  • 有償服務QQ

手機版|小黑屋|Discuz! 官方交流社區 ( 皖ICP備16010102號 |皖公網安備34010302002376號 )|網站地圖|star

GMT+8, 2025-9-21 05:39 , Processed in 0.068166 second(s), 30 queries .

Powered by Discuz! W1.0 Licensed

Copyright © 2001-2025 Discuz! Team.

關燈 在本版發帖
有償服務QQ
有償服務微信
返回頂部
快速回復 返回頂部 返回列表