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>

                        • 主站蜘蛛池模板: 定做大型恒温循环水浴槽-工业用不锈钢恒温水箱-大容量低温恒温水槽-常州精达仪器 | 广州网站建设_小程序开发_番禺网站建设_佛山网站建设_粤联网络 | MVR蒸发器厂家-多效蒸发器-工业废水蒸发器厂家-康景辉集团官网 | 汽液过滤网厂家_安平县银锐丝网有限公司 | 蒸汽吸附分析仪-进口水分活度仪|康宝百科 | 环保袋,无纺布袋,无纺布打孔袋,保温袋,环保袋定制,环保袋厂家,环雅包装-十七年环保袋定制厂家 | 缠绕机|缠绕膜包装机|缠绕包装机-上海晏陵智能设备有限公司 | 高铝砖-高铝耐火球-高铝耐火砖生产厂家-价格【荣盛耐材】 | 大型冰雕-景区冰雕展制作公司,3D创意设计源头厂家-[赛北冰雕] | 微信小程序定制,广州app公众号商城网站开发公司-广东锋火 | 湖南印刷厂|长沙印刷公司|画册印刷|挂历印刷|台历印刷|杂志印刷-乐成印刷 | 一体式钢筋扫描仪-楼板测厚仪-裂缝检测仪-泰仕特(北京) | 视频教程导航网_视频教程之家_视频教程大全_最新视频教程分享发布平台 | 江苏全风,高压风机,全风环保风机,全风环形高压风机,防爆高压风机厂家-江苏全风环保科技有限公司(官网) | Honsberg流量计-Greisinger真空表-气压计-上海欧臻机电设备有限公司 | 浙江皓格药业有限公司| 四合院设计_四合院装修_四合院会所设计-四合院古建设计与建造中心1 | 工控机-工业平板电脑-研华工控机-研越无风扇嵌入式box工控机 | 不锈钢水箱生产厂家_消防水箱生产厂家-河南联固供水设备有限公司 | 找果网 | 苹果手机找回方法,苹果iPhone手机丢了找回,认准找果网! | 千淘酒店差旅平台-中国第一家针对TMC行业的酒店资源供应平台 | 日本SMC气缸接头-速度控制阀-日本三菱伺服电机-苏州禾力自动化科技有限公司 | 网架支座@球铰支座@钢结构支座@成品支座厂家@万向滑动支座_桥兴工程橡胶有限公司 | 陶瓷砂磨机,盘式砂磨机,棒销式砂磨机-无锡市少宏粉体科技有限公司 | (中山|佛山|江门)环氧地坪漆,停车场地板漆,车库地板漆,聚氨酯地板漆-中山永旺地坪漆厂家 | 北京发电机出租_发电机租赁_北京发电机维修 - 河北腾伦发电机出租 | 青岛球场围网,青岛车间隔离网,青岛机器人围栏,青岛水源地围网,青岛围网,青岛隔离栅-青岛晟腾金属制品有限公司 | 发光字|标识设计|标牌制作|精神堡垒 - 江苏苏通广告有限公司 | 烟雾净化器-滤筒除尘器-防爆除尘器-除尘器厂家-东莞执信环保科技有限公司 | 风电变桨伺服驱动器-风电偏航变桨系统-深圳众城卓越科技有限公司 | 楼承板设备-楼承板成型机-免浇筑楼承板机器厂家-捡来 | 粉碎机_塑料粉碎机_塑料破碎机厂家-星标机械 | 谈股票-今日股票行情走势分析-牛股推荐排行榜| 异噻唑啉酮-均三嗪-三丹油-1227-中北杀菌剂厂家 | 嘉兴泰东园林景观工程有限公司_花箱护栏 | 砍排机-锯骨机-冻肉切丁机-熟肉切片机-预制菜生产线一站式服务厂商 - 广州市祥九瑞盈机械设备有限公司 | 书法培训-高考书法艺考培训班-山东艺霖书法培训凭实力挺进央美 | 建大仁科-温湿度变送器|温湿度传感器|温湿度记录仪_厂家_价格-山东仁科 | 电子厂招聘_工厂招聘_普工招聘_小时工招聘信息平台-众立方招工网 | 全自动定氮仪-半自动凯氏定氮仪厂家-祎鸿仪器 | 牛皮纸|牛卡纸|进口牛皮纸|食品级牛皮纸|牛皮纸厂家-伽立实业 |