WP网站迁移后出现404错误

发布于 2024-11-27 18:01:19 字数 438 浏览 4 评论 0原文

我有 此网址,我现在在其中拥有我的网站,但我将其迁移到 这个。我有一个自定义的永久链接结构:

/%category%/%postname%/

第一个链接(旧网站) 中工作正常,但在新版本中,只有默认选项 (?p=123) 结构有效。

重要的是要说第二个链接,URL 指向另一个服务器,这意味着第二个 url 是我的服务器中的 CNAME。我还导入 .htaccess 文件。

如何在新服务器中使我的自定义结构正常工作?

I have this url, where I have my site now, but I migrate it to this one. I have a custom permalink structure:

/%category%/%postname%/

In the first link (old site) al works fine, but in the new one, only the default option (?p=123) structure works.

It's important to say that the second link, the URL's points to another server, it means the second url is an CNAME in my server. I also import the .htaccess file.

How can I make work my custom structure in the new server?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

对你的占有欲 2024-12-04 18:01:19

这对我来说是这样:

尝试刷新你的 mod_rewrite 规则:

仪表板 ->设置->固定链接

保存设置(无需进行任何更改)

https://wordpress .stackexchange.com/questions/14685/after-server-migration-only-the-homepage-works

That did it for me:

Try flushing your mod_rewrite rules:

Dashboard -> Settings -> Permalinks

Save settings (no need to make any changes)

https://wordpress.stackexchange.com/questions/14685/after-server-migration-only-the-homepage-works

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文