WordPress Permalinks Does Not Work in xampp Setup在WordPress永久不工作, xampp安装

xampp provides a convenient way to quickly and easily install and setup a web server that works without much configuration. xampp提供了一个便捷的途径,以快速,轻松地安装和设置一个Web伺服器工程没有太多的配置。 However, permalinks feature won’t work with the default installation of xampp, even though you can properly customize the permalinks structure to create the .htaccess file.然而,永久性功能将无法工作的默认安装xampp ,即使您可以自订适当的永久性结构,以创造。 htaccess的文件。

When you click on any permalinks, your WordPress blog will return a 404 error instead, saying the post not found.当你点击任何永久性,您的WordPress所博客就会返回一个404错误,而是说后没有发现。 Instead, you can only access your blog posts via default permalinks structure, which is in the form of http://www.mydigitallife.info/?p=123.反之,你只可以访问您的博客帖子通过预设的永久性结构,这是在形式http://www.mydigitallife.info/?p=123 。

This is because in xampp, mod_rewrite is not enable by default.这是因为在xampp , mod_rewrite是无法使默认情况下。 Beside, AllowOverride directive in Apache configuration file is also set to None by default, causing Apache web server to ignore any .htaccess file, which used to rewrite the permalinks to the post’s actual url.旁边, allowoverride指令在Apache配置文件也设定为无默认情况下,造成Apache Web服务器不理会任何。 htaccess的文件,该文件用来重写永久性该职位的实际网址。

To use permalinks in WordPress that installed on xampp-based server, edit the httpd.conf that locates in C:\Program Files\xampp\apache\conf directory (folder).使用永久性在WordPress安装就xampp为基础的伺服器,编辑httpd.conf中指出,坐落在C : \程序文件\ xampp \阿帕奇\设置目录(文件夹) 。 Open httpd.conf in any text editor, search for “mod_rewrite”.开放的httpd.conf在任何文本编辑器,搜索“ mod_rewrite ” 。 You should come to a line like this:你应该来一条线是这样的:

#LoadModule rewrite_module modules/mod_rewrite.so # loadmodule rewrite_module模块/ mod_rewrite.so

Remove the hash sign (#) from the line.删除散列符号( # )从线。 The # indicates the line is not in effect. #表明,该行不会在的效果。 The changed line should looks like this:改变路线,应该看起来像这样:

LoadModule rewrite_module modules/mod_rewrite.so loadmodule rewrite_module模块/ mod_rewrite.so

After that, search for “AllowOverride”.之后,搜索“ allowoverride ” 。 You will come to a line like this:你会来一条线是这样的:

AllowOverride None allowoverride无

If the above line is contained within default directory (mean the directory declaration is just如果上述路线是包含在默认目录(指目录宣言只是 ), then it can be left as it is. ) ,然后可以离开,因为这是。 Continue searching and you would come to a second instance of AllowOverride which is contained inside your web server’s document root (default for xampp is继续搜索和你会来的第二个实例allowoverride这是内载您的Web服务器的文档根目录(默认为是xampp in Windows).在Windows ) 。 Change the None to All to make the line looks like this:改变没有给所有方面,以使线看起来像这样:

AllowOverride All allowoverride所有

Restart the Apache.重新启动Apache的。 Permalinks is working after restart.是永久性的工作后重新启动。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原版的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 .



26 Responses to “WordPress Permalinks Does Not Work in xampp Setup” 26日的反应“的WordPress永久不工作, xampp安装程序”

Pages: [2]页数: [ 2 ] 1 » Show All显示所有

  1. Arhtur arhtur
    August 15th, 2008 04:59 2008年8月15日4时59分
    26

    Thanks A LOT!感谢了很多! Works great!伟大的工程!

Pages: [2]页数: [ 2 ] 1 » Show All显示所有

Leave a Reply离开的答复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些标签:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <删除日期时间= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅无评论


Custom Search

New Articles新的条款,

Incoming Search Terms for the Article传入的搜索条件文章

xampp mod_rewrite xampp mod_rewrite - - xampp htaccess htaccess的xampp - - mod_rewrite xampp mod_rewrite xampp - - xampp .htaccess xampp 。 htaccess的 - - wordpress permalinks not working 在WordPress永久不工作 - - enable mod_rewrite XAMPP 使mod_rewrite xampp - - xampp permalinks xampp永久性 - - xampp AllowOverride xampp allowoverride - - xampp wordpress permalink xampp的WordPress的永久 - - xampp wordpress permalinks xampp的WordPress永久 - - xampp enable htaccess xampp使htaccess的 - - Permalinks not working 永久不工作 - - xampp apache mod_rewrite xampp的Apache mod_rewrite - - wordpress xampp permalinks 在WordPress xampp永久性 - - how to enable mod_rewrite in xampp 如何使mod_rewrite在xampp - - htaccess xampp htaccess的xampp - - wordpress permalink not working 在WordPress永久不工作 - - wordpress permalinks apache 在WordPress的永久阿帕奇 - - permalinks in xampp 永久在xampp - - permalinks xampp 永久xampp - - wordpress permalink does not work 在WordPress永久不工作 - - wamp wordpress permalinks wamp的WordPress永久 - - wordpress permalinks 在WordPress永久 - - xampp enable mod_rewrite xampp使mod_rewrite - - will email work with xampp 将电子邮件的工作与xampp - - wordpress permalink problem was not found on this server. 在WordPress的永久问题并不在此服务器上找到。 - - setting .htaccess in xampp 设置。 htaccess的在xampp - - apache rewrite xampp 阿帕奇重写xampp - - enable mod_rewrite in xampp 使mod_rewrite在xampp - - permalinks do not work wordpress 永久不工作的WordPress - - permalink wordpress xampp 永久的WordPress xampp - - wordpress + .htaccess + permalinks + "page not found" 在WordPress + 。 htaccess的+永久+ “找不到网页” - - xampp htaccess httpd.conf xampp htaccess的httpd.conf文件 - - wordpress permalink page not found 在WordPress的永久未找到网页 - - xampp and .htaccess xampp和。 htaccess的 - - XAMPP + htaccess xampp + htaccess的 - - mod rewrite xampp wordpress 按付款当日价格计算重写xampp的WordPress - - xampp htaccess enable xampp htaccess的启用 - - xampp wordpress permalink not working xampp的WordPress永久不工作 - - wordpress permalinks xampp 在WordPress的永久xampp - - xampp authentic windows login xampp真确的Windows登录 - - wordpress permalinks not found 在WordPress的永久未找到 - - xamp mod_rewrite xamp mod_rewrite - - xampp wordpress 2008 xampp的WordPress 2008年 - - xamp permalinks xamp永久性 - - wordpress permalinks "not found" 在WordPress的永久“找不到” - - move wordpress to xampp 动议的WordPress ,以xampp - - XAMPP SETUP .HTACCESS xampp安装。 htaccess的 - - wordpress permalinks dont work 在WordPress的永久不用工作 - - xampp wordpress htaccess xampp的WordPress htaccess的 - -