WP网站迁移后出现404错误
我有 此网址,我现在在其中拥有我的网站,但我将其迁移到 这个。我有一个自定义的永久链接结构:
/%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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这对我来说是这样:
尝试刷新你的 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