$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>urls - Post page still linked to old site|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

urls - Post page still linked to old site

matteradmin8PV0评论

Wife transferred her domain from Godaddy to HostGator. Somehow the Post page is still linked to the old site. I say old site because she started fresh on the site only wanting the domain. Her domain was hersite.wordpress and now is just hersite.

All the content is where it should be until I assign the post page. No matter what page I set to be the post page for her blog it automatically wipes everything form that particular page except the header. Once I switch the post page settings back to "select" or none, the content is back to normal. What she didn't tell me was two weeks ago she was able to log into the old site and everything was the same except the blog ( set at post page ) was all from the new site. Sorry for the 3rd grade explanation of the issue. How do I fix this?

Wife transferred her domain from Godaddy to HostGator. Somehow the Post page is still linked to the old site. I say old site because she started fresh on the site only wanting the domain. Her domain was hersite.wordpress and now is just hersite.

All the content is where it should be until I assign the post page. No matter what page I set to be the post page for her blog it automatically wipes everything form that particular page except the header. Once I switch the post page settings back to "select" or none, the content is back to normal. What she didn't tell me was two weeks ago she was able to log into the old site and everything was the same except the blog ( set at post page ) was all from the new site. Sorry for the 3rd grade explanation of the issue. How do I fix this?

Share Improve this question edited Feb 17, 2019 at 12:39 tmdesigned 1,6751 gold badge14 silver badges17 bronze badges asked Feb 17, 2019 at 4:45 ChrisChris 1
Add a comment  | 

2 Answers 2

Reset to default 0

I think this can be the cause from some permalink settings. In the Settings-> Permalinks, you can click the "Save" button, and the permalinks will refresh. I'm not sure that will work, but that's where I will first look.

Maybe a search/replace plugin (I like "Better Search and Replace") to search for https://www.olddomain and replace it with https://www.newdomain .

Which will also fix broken URLs for files in the media area (pix, etc).

Added

Check the wp-options table for the two URL entries. Make sure both are set to the new value.

Then look at the wp-config.php file and check for the wrong URLs in constants there. (Which is why I don't like making those URL changes in the wp-config.php file...)

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far