pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    <legend id='Kz21a'><style id='Kz21a'><dir id='Kz21a'><q id='Kz21a'></q></dir></style></legend>

    • <bdo id='Kz21a'></bdo><ul id='Kz21a'></ul>
    <i id='Kz21a'><tr id='Kz21a'><dt id='Kz21a'><q id='Kz21a'><span id='Kz21a'><b id='Kz21a'><form id='Kz21a'><ins id='Kz21a'></ins><ul id='Kz21a'></ul><sub id='Kz21a'></sub></form><legend id='Kz21a'></legend><bdo id='Kz21a'><pre id='Kz21a'><center id='Kz21a'></center></pre></bdo></b><th id='Kz21a'></th></span></q></dt></tr></i><div class="lnjfbnj" id='Kz21a'><tfoot id='Kz21a'></tfoot><dl id='Kz21a'><fieldset id='Kz21a'></fieldset></dl></div>
  1. <small id='Kz21a'></small><noframes id='Kz21a'>

    <tfoot id='Kz21a'></tfoot>

      WordPress 鏈接全部重定向到雙 URL

      WordPress links all redirect to double URL(WordPress 鏈接全部重定向到雙 URL)

        <tfoot id='i9oim'></tfoot>

        <small id='i9oim'></small><noframes id='i9oim'>

          <bdo id='i9oim'></bdo><ul id='i9oim'></ul>

          <i id='i9oim'><tr id='i9oim'><dt id='i9oim'><q id='i9oim'><span id='i9oim'><b id='i9oim'><form id='i9oim'><ins id='i9oim'></ins><ul id='i9oim'></ul><sub id='i9oim'></sub></form><legend id='i9oim'></legend><bdo id='i9oim'><pre id='i9oim'><center id='i9oim'></center></pre></bdo></b><th id='i9oim'></th></span></q></dt></tr></i><div class="t7rlxbx" id='i9oim'><tfoot id='i9oim'></tfoot><dl id='i9oim'><fieldset id='i9oim'></fieldset></dl></div>
          <legend id='i9oim'><style id='i9oim'><dir id='i9oim'><q id='i9oim'></q></dir></style></legend>
                <tbody id='i9oim'></tbody>

                本文介紹了WordPress 鏈接全部重定向到雙 URL的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                限時(shí)送ChatGPT賬號(hào)..

                一位開發(fā)人員在他的本地機(jī)器上建立了一個(gè) WordPress 網(wǎng)站.然后他將整個(gè)安裝遷移到服務(wù)器上.自然,sql中的所有鏈接都設(shè)置為localhost:8888.然后我運(yùn)行了一個(gè) SQL 更新來修復(fù)鏈接,使它們指向正確的域(現(xiàn)在是一個(gè) ipaddress/~username 鏈接).我已經(jīng)仔細(xì)檢查了我的工作,一切看起來都是正確的.

                A fellow developer built a WordPress website on his local machine. He then migrated the whole installation onto a server. Naturally, all the links in sql were set to localhost:8888. I then ran a SQL update to fix the links so they pointed to the correct domain (which right now is an ipaddress/~username link). I've double checked my work, and it all looks correct.

                UPDATE wp_options SET option_value = replace(option_value, 'http://olddomain.com', 'http://newdomain.com');
                UPDATE wp_options SET option_value = replace(option_value, 'feed://www.olddomain.com', 'feed://newdomain.com');
                UPDATE wp_posts SET guid = replace(guid, 'http://olddomain.com','http://newdomain.com');
                UPDATE wp_posts SET post_content = replace(post_content, 'http://olddomain.com', 'http://newdomain.com');
                UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://olddomain.com', 'http://newdomain.com');
                

                我使用了該編碼,但其中包含適當(dāng)?shù)挠蛐畔?

                I used that coding, but with the appropriate domain information in there.

                現(xiàn)在是發(fā)生了什么.

                每當(dāng)我進(jìn)入主頁時(shí),它都可以工作,但圖像不顯示.然后我點(diǎn)擊一個(gè)鏈接,或前往 wp-admin,它在 urlbar 中顯示了兩次 url.所以它會(huì)變成這樣:

                Whenever I go to the homepage, it works, but the images don't show up. then i click on a link, or travel to teh wp-admin, and it shows the url twice in the urlbar. so it goes to something like:

                http://newdomain.com/~user/http://newdomain.com/~user/post-name-blah-blah-blah
                

                .htaccess 文件都是默認(rèn)的,(如果 WordPress 在一個(gè)子目錄中,它應(yīng)該有重寫規(guī)則而不是/?)

                the .htaccess file is all default, (if WordPress is in a subdirectory should it have a rewrite rule for that instead of just /?)

                如果沒有像 SQL 中那樣列出,什么會(huì)導(dǎo)致網(wǎng)站上的每個(gè)鏈接兩次訪問同一個(gè) URL?

                What could cause every link on the site to go to the same url twice, if none of them are listed like that in SQL?

                更新:

                好的,所以我刪除了整個(gè)數(shù)據(jù)庫并重新設(shè)置,然后站點(diǎn)就可以正常工作了.當(dāng)然,這意味著我丟失了所有內(nèi)容.我猜我在某處搞砸了 sql 查詢.但是我找不到任何有兩個(gè) url 的地方,或者甚至?xí)?dǎo)致這種情況.隨著我發(fā)現(xiàn)我的問題,將會(huì)有更多更新.

                Alright, so I erased the whole database and reset that up, and then the site works fine. of course that means I lose all my content. I'm guessing i screwed up the sql query's somewhere down the line. But I can't find anywhere that has two urls, or would even cause this. More updates coming as I figure out my issue.

                推薦答案

                我解決了!希望如果其他人來到這里并犯了同樣的錯(cuò)誤,這會(huì)有所幫助.在 wp_options 表中,site_urlhome 的行需要在它們前面有 http:// .不知何故,我的 sql 查詢破壞了該部分.我當(dāng)然沒有注意到,因?yàn)榈刂房雌饋硎钦_的,因?yàn)檫@通常有效.但在這種情況下,它會(huì)導(dǎo)致一些鏈接永無止境的循環(huán),而在其他情況下,它只會(huì)將地址翻倍.

                I Solved it! Hopefully if anyone else comes here and has the same mistake, this will help. In the wp_options table the rows for site_url and home need to have http:// in front of them. Somehow on my, my sql query busted that portion. Of course I didn't notice because the address looked correct, because that normally works. but in this case it caused a never-ending loop with some links, and in others just doubled the address.

                這篇關(guān)于WordPress 鏈接全部重定向到雙 URL的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                SQL query to get all products, categories and meta data woocommerce/wordpress(獲取所有產(chǎn)品、類別和元數(shù)據(jù)的 SQL 查詢 woocommerce/wordpress)
                How to use MySQL in WSL (Windows Subsystem for Linux)?(如何在 WSL(Linux 的 Windows 子系統(tǒng))中使用 MySQL?)
                PowerShell MySQL Backup Script Error in Task Scheduler 0x00041301(任務(wù)計(jì)劃程序中的 PowerShell MySQL 備份腳本錯(cuò)誤 0x00041301)
                Import the data from the XML files into a MySQL database(將數(shù)據(jù)從 XML 文件導(dǎo)入 MySQL 數(shù)據(jù)庫)
                installed Xampp on Windows 7 32-bit. Errors when starting(在 Windows 7 32 位上安裝 Xampp.啟動(dòng)時(shí)的錯(cuò)誤)
                Mysql lower case table on Windows xampp(Windows xampp 上的 Mysql 小寫表)

              • <i id='PS9rt'><tr id='PS9rt'><dt id='PS9rt'><q id='PS9rt'><span id='PS9rt'><b id='PS9rt'><form id='PS9rt'><ins id='PS9rt'></ins><ul id='PS9rt'></ul><sub id='PS9rt'></sub></form><legend id='PS9rt'></legend><bdo id='PS9rt'><pre id='PS9rt'><center id='PS9rt'></center></pre></bdo></b><th id='PS9rt'></th></span></q></dt></tr></i><div class="nhltzdf" id='PS9rt'><tfoot id='PS9rt'></tfoot><dl id='PS9rt'><fieldset id='PS9rt'></fieldset></dl></div>
              • <tfoot id='PS9rt'></tfoot>

                <small id='PS9rt'></small><noframes id='PS9rt'>

                  <legend id='PS9rt'><style id='PS9rt'><dir id='PS9rt'><q id='PS9rt'></q></dir></style></legend>
                        <tbody id='PS9rt'></tbody>
                      • <bdo id='PS9rt'></bdo><ul id='PS9rt'></ul>

                        • 主站蜘蛛池模板: 清水-铝合金-建筑模板厂家-木模板价格-铝模板生产「五棵松」品牌 | 定时排水阀/排气阀-仪表三通旋塞阀-直角式脉冲电磁阀-永嘉良科阀门有限公司 | 警用|治安|保安|不锈钢岗亭-售货亭价格-垃圾分类亭-移动厕所厂家-苏州灿宇建材 | 温州中研白癜风专科_温州治疗白癜风_温州治疗白癜风医院哪家好_温州哪里治疗白癜风 | 深圳宣传片制作_产品视频制作_深圳3D动画制作公司_深圳短视频拍摄-深圳市西典映画传媒有限公司 | 中国产业发展研究网 - 提供行业研究报告 可行性研究报告 投资咨询 市场调研服务 | 依维柯自动挡房车,自行式国产改装房车,小型房车价格,中国十大房车品牌_南京拓锐斯特房车 - 南京拓锐斯特房车 | 东莞工厂厂房装修_无尘车间施工_钢结构工程安装-广东集景建筑装饰设计工程有限公司 | 暖气片十大品牌厂家_铜铝复合暖气片厂家_暖气片什么牌子好_欣鑫达散热器 | 创富网-B2B网站|供求信息网|b2b平台|专业电子商务网站 | 新型锤式破碎机_新型圆锥式_新型颚式破碎机_反击式打沙机_锤式制砂机_青州建源机械 | 阳光模拟试验箱_高低温试验箱_高低温冲击试验箱_快速温变试验箱|东莞市赛思检测设备有限公司 | 洛阳网站建设_洛阳网站优化_网站建设平台_洛阳香河网络科技有限公司 | AGV叉车|无人叉车|AGV智能叉车|AGV搬运车-江西丹巴赫机器人股份有限公司 | 铝镁锰板_铝镁锰合金板_铝镁锰板厂家_铝镁锰金属屋面板_安徽建科 | 广域铭岛Geega(际嘉)工业互联网平台-以数字科技引领行业跃迁 | 恒温振荡混匀器-微孔板振荡器厂家-多管涡旋混匀器厂家-合肥艾本森(www.17world.net) | 药品冷藏箱厂家_低温冰箱_洁净工作台-济南欧莱博电子商务有限公司官网 | 空气能采暖,热泵烘干机,空气源热水机组|设备|厂家,东莞高温热泵_正旭新能源 | 郑州外墙清洗_郑州玻璃幕墙清洗_郑州开荒保洁-河南三恒清洗服务有限公司 | 上海办公室装修公司_办公室设计_直营办公装修-羚志悦装 | 鄂泉泵业官网|(杭州、上海、全国畅销)大流量防汛排涝泵-LW立式排污泵 | 网站建设-高端品牌网站设计制作一站式定制_杭州APP/微信小程序开发运营-鼎易科技 | 致胜管家软件服务【在线免费体验】| 石家庄网站建设|石家庄网站制作|石家庄小程序开发|石家庄微信开发|网站建设公司|网站制作公司|微信小程序开发|手机APP开发|软件开发 | 办公室家具公司_办公家具品牌厂家_森拉堡办公家具【官网】 | 生鲜配送系统-蔬菜食材配送管理系统-连锁餐饮订货配送软件-挪挪生鲜供应链管理软件 | 一技任务网_有一技之长,就来技术任务网 | cnc精密加工_数控机械加工_非标平键定制生产厂家_扬州沃佳机械有限公司 | 99文库_实习生实用的范文资料文库站| 工业机械三维动画制作 环保设备原理三维演示动画 自动化装配产线三维动画制作公司-南京燃动数字 聚合氯化铝_喷雾聚氯化铝_聚合氯化铝铁厂家_郑州亿升化工有限公司 | 废气处理_废气处理设备_工业废气处理_江苏龙泰环保设备制造有限公司 | 熔体泵|换网器|熔体齿轮泵|熔体计量泵厂家-郑州巴特熔体泵有限公司 | HDPE土工膜,复合土工膜,防渗膜价格,土工膜厂家-山东新路通工程材料有限公司 | 专业甜品培训学校_广东糖水培训_奶茶培训_特色小吃培训_广州烘趣甜品培训机构 | 硫酸亚铁-聚合硫酸铁-除氟除磷剂-复合碳源-污水处理药剂厂家—长隆科技 | 赛默飞Thermo veritiproPCR仪|ProFlex3 x 32PCR系统|Countess3细胞计数仪|371|3111二氧化碳培养箱|Mirco17R|Mirco21R离心机|仟诺生物 | 春腾云财 - 为企业提供专业财税咨询、代理记账服务 | 北京百度网站优化|北京网站建设公司-百谷网络科技 | 能量回馈_制动单元_电梯节能_能耗制动_深圳市合兴加能科技有限公司 | 反渗透阻垢剂-缓蚀阻垢剂厂家-循环水处理药剂-山东鲁东环保科技有限公司 |