简体   繁体   English

Wordpress永久链接结构未更新

[英]Wordpress Permalink Structure Not Updating

I was working on a wordpress site, the client didn't own a domain so I set up a subdomain like so wordpress.example.com (note I used my own domain, not example), once the client had purchased a domain I moved the files to the right place and updated the permalink structure. 我当时在wordpress网站上工作,客户不拥有域名,所以一旦客户购买了我迁移的域名,我就设置了像wordpress.example.com这样的子域(请注意,我使用的是我自己的域名,而不是示例)将文件放置在正确的位置,并更新了永久链接结构。 The wordpress general settings look like so: wordpress的常规设置如下所示:

Wordpress Address: http://clientdomain.com/ Site Address: http://clientdomain.com/

The permalink strucutre is also correct: 永久链接结构也正确:

Common Settings: //Unselected permalink settings Post Name (•) : http://clientdomain.com/sample-post/

And when I select any random blog post it says: 当我选择任意博客文章时,它会说:

Permalink: http://clientdomain.com/blog-post-name/

However on the live version of the site clicking on any given blog post still tries to redirect me to wordpress.example.com/blog-post-name 但是,在网站的实时版本上,单击任何给定的博客文章仍会尝试将我重定向到wordpress.example.com/blog-post-name

Is it just a case of waiting for the changes to ripple through the system or have I missed something? 是否只是等待更改在系统中波动的情况,还是我错过了一些事情? Any help would be greatly appreciated. 任何帮助将不胜感激。

Cheers! 干杯!

WP stores post URL's in DB. WP将帖子URL存储在DB中。 You need to check post table and other tables too. 您还需要检查发布表和其他表。 Replace them with your live domain. 用您的活动域替换它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM