我已经安装了wordpress,现在http://localhost/wp-login.php之类的都可以了。假设我想访问诸如http://localhost/something-here/这样的页面会给我一个 404 错误。此 404 错误仅发生在本地主机上,而不是实时服务器上。
这是什么原因。
谢谢让
我已经安装了wordpress,现在http://localhost/wp-login.php之类的都可以了。假设我想访问诸如http://localhost/something-here/这样的页面会给我一个 404 错误。此 404 错误仅发生在本地主机上,而不是实时服务器上。
这是什么原因。
谢谢让
尝试刷新您的 URL:转到Settings → Permalinks → Update。
在WAMP中,您可以做的是转到WAMP icon in the system tray > Apache > Apache Modules > Tick the rewrite_module
.
如果您使用的是 wamp,请单击 wamp 图标并:Apache > Apache Modules >
确保选中 rewrite_module。
请按照以下步骤操作 1. URL:转到设置 → 永久链接设置 → 通用设置 2. 选择本地服务器的默认 url 格式