显示具有邮政编码永久链接的页面的问题

时间:2014-10-23 05:21:38

标签: wordpress .htaccess wordpress-theming

我有一个简单的主题,如下面

enter image description here

现在,当我导航到localhost和站点根目录时,我能够看到来自header.php , footer.php and page.php的内容。

然后,我只为导航栏生成一些页面并获得更好的URL我将永久链接从默认更新为帖子名称格式

enter image description here

现在,我将干净的Ur设为:Permalink: http://localhost/RumiPress/eyeglasses/

enter image description here

但是当我点击查看我正在获取的页面时

enter image description here

我谷歌这个并找到关于(.htaccess)的一些提示,所以我只是复制了与Cedex相同的格式 enter image description here

但仍然得到相同的结果。能告诉我为什么会这样吗?

由于

1 个答案:

答案 0 :(得分:1)

需要启用Apache的mod_rewrite 模块,以便在WordPress中使用“漂亮”永久链接作为specified in the codex

您正在使用WAMP,因此可以通过以下方式完成:

  1. 左键单击通知栏中的绿色WAMP图标
  2. 点击Apache - > Apache模块
  3. 启用rewrite_module(确保已选中)
相关问题