久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <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="qwawimqqmiuu" 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="qwawimqqmiuu" 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的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

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

                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');
                

                我使用了該編碼,但其中包含適當的域信息.

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

                現在是發生了什么.

                每當我進入主頁時,它都可以工作,但圖像不顯示.然后我點擊一個鏈接,或前往 wp-admin,它在 urlbar 中顯示了兩次 url.所以它會變成這樣:

                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 文件都是默認的,(如果 WordPress 在一個子目錄中,它應該有重寫規則而不是/?)

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

                如果沒有像 SQL 中那樣列出,什么會導致網站上的每個鏈接兩次訪問同一個 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?

                更新:

                好的,所以我刪除了整個數據庫并重新設置,然后站點就可以正常工作了.當然,這意味著我丟失了所有內容.我猜我在某處搞砸了 sql 查詢.但是我找不到任何有兩個 url 的地方,或者甚至會導致這種情況.隨著我發現我的問題,將會有更多更新.

                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.

                推薦答案

                我解決了!希望如果其他人來到這里并犯了同樣的錯誤,這會有所幫助.在 wp_options 表中,site_urlhome 的行需要在它們前面有 http:// .不知何故,我的 sql 查詢破壞了該部分.我當然沒有注意到,因為地址看起來是正確的,因為這通常有效.但在這種情況下,它會導致一些鏈接永無止境的循環,而在其他情況下,它只會將地址翻倍.

                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.

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

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

                相關文檔推薦

                SQL query to get all products, categories and meta data woocommerce/wordpress(獲取所有產品、類別和元數據的 SQL 查詢 woocommerce/wordpress)
                How to use MySQL in WSL (Windows Subsystem for Linux)?(如何在 WSL(Linux 的 Windows 子系統)中使用 MySQL?)
                PowerShell MySQL Backup Script Error in Task Scheduler 0x00041301(任務計劃程序中的 PowerShell MySQL 備份腳本錯誤 0x00041301)
                Import the data from the XML files into a MySQL database(將數據從 XML 文件導入 MySQL 數據庫)
                installed Xampp on Windows 7 32-bit. Errors when starting(在 Windows 7 32 位上安裝 Xampp.啟動時的錯誤)
                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="qwawimqqmiuu" 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>

                        • 主站蜘蛛池模板: 久久精品青青大伊人av | 91久久精| 亚洲精品无 | 久久久精品亚洲 | 99精品免费在线观看 | 久久精品视频在线观看 | 特黄色一级毛片 | 久久99国产精品 | 国产蜜臀 | 欧美日韩在线观看视频网站 | 亚洲一区二区三区免费观看 | 自拍偷拍亚洲欧美 | 一区二区日本 | 日本h片在线观看 | 欧美一区在线视频 | 欧美精品中文 | 国产精品亚洲一区 | 亚洲国产看片 | 青青草中文字幕 | 丁香五月网久久综合 | 日韩高清电影 | 超级乱淫av片免费播放 | 国产精品日日摸夜夜添夜夜av | 91日韩 | 黄色一级大片在线免费看产 | 精品av| 黄色毛片一级 | 日韩在线观看 | 午夜影晥 | 欧美一级片在线 | 日韩电影免费观看中文字幕 | 美国av毛片| 欧美黑人狂野猛交老妇 | 亚洲一区二区精品视频在线观看 | 欧美在线观看一区 | 综合五月婷| 一区二区视频在线 | 久久久免费精品 | 黄网站在线播放 | 成人在线视频网站 | 欧美激情精品久久久久久变态 |