WordPress url 显示在本地主机上找不到页面,但在线它没问题

发布于 2024-10-10 07:14:22 字数 276 浏览 0 评论 0原文

我已经安装了wordpress,现在 http://localhost/wp-login.php 之类的都可以了。假设我想要访问诸如 http://localhost/something-here/ 之类的页面,则会出现 404 错误。此 404 错误仅发生在本地主机上,而不发生在实时服务器上。

这是什么原因呢。

谢谢 让

I have installed wordpress, now the http://localhost/wp-login.php and the likes are okay. Assuming that I want to go to a page such such as http://localhost/something-here/ gives me a 404 error. This 404 error happens only on localhost not on a live server.

What is the reason for this.

Thanks
Jean

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

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

发布评论

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

评论(4

眼藏柔 2024-10-17 07:14:22

尝试刷新您的网址:转到设置固定链接更新

Try flushing your URLs: go to SettingsPermalinksUpdate.

迷你仙 2024-10-17 07:14:22

WAMP 中,您可以转到系统托盘中的 WAMP 图标 >阿帕奇> Apache 模块 >勾选rewrite_module

In WAMP what you can do is go to WAMP icon in the system tray > Apache > Apache Modules > Tick the rewrite_module.

浅笑依然 2024-10-17 07:14:22

如果您使用的是 wamp,请单击 wamp 图标并: Apache > Apache 模块 > 确保 rewrite_module 已勾选。

If you are using wamp, click on the wamp icon and: Apache > Apache Modules > ensure rewrite_module is ticked.

追星践月 2024-10-17 07:14:22

请按照以下步骤操作
1. URL:进入设置→固定链接设置→常用设置
2.选择本地服务器默认的url格式

Follow these steps
1. URLs: go to Settings → Permalinks Setting→ Common Settings
2. select the default url format for local server

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