Home > Tips & Trik > WordPress Permalinks Does Not Work in xampp Setup

WordPress Permalinks Does Not Work in xampp Setup

September 23rd, 2008 DikMa 159 Views

xampp provides a convenient way to quickly and easily install and setup a web server that works without much configuration. 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.

When you click on any permalinks, your WordPress blog will return a 404 error instead, saying the post not found. Instead, you can only access your blog posts via default permalinks structure, which is in the form of http://www.mydigitallife.info/?p=123.

This is because in xampp, mod_rewrite is not enable by default. 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.

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). Open httpd.conf in any text editor, search for “mod_rewrite”. You should come to a line like this:

#LoadModule rewrite_module modules/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

After that, search for “AllowOverride”. You will come to a line like this:

AllowOverride None

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 in Windows). Change the None to All to make the line looks like this:

AllowOverride All

Restart the Apache. Permalinks is working after restart.

Sumber : http://www.mydigitallife.info/


25 Keyword pencarian terbanyak untuk artikel ini melalui mesin pencari Google :

File under :

You might also like too :

Dari PHPTriad ke WAMP5 sampai XAMPP
Pertama PHPTriad, selanjutnya WAMP5 terakhir aku menggunakan XAMPP sebagai web server localku, ya pada artikelku "Pilih Mana …...
IIS dan Apache Webserver dalam Satu Mesin
" Bisakah Internet Information Servicer ( IIS ) dan Apache Webserver (XAMPP) dijalankan bersamaan ? " Jika kita hanya menginginkan...
OperaTor and Polipo
Want to browse the web secretly ?  Use with a combination of OperaTor and Polipo. with OperaTor, there is no data stored on...
Create An Ftp Server On Your Pc With Serv-U
Requirements:  Serv-U &  No-IP.com Website Quote: Step 1. Getting a static IP address. Go to www.no-ip.com to create...

Advertisement :

  1. trevor
    December 23rd, 2008 at 03:50 | #1

    Hi,

    I used your advice here, for my WAMP / WordPress setup and it fixed me up…

    Thanks a lot! Very helpful.

    Best wishes and greetings from Toronto,

    trev
    # u welcome

  2. Alexwebmaster
    March 3rd, 2009 at 20:53 | #2

    Hello webmaster
    I would like to share with you a link to your site
    write me here preonrelt@mail.ru

  3. June 15th, 2009 at 22:39 | #3

    @Trevor

    Me too. Works great with WAMP. For some reason it already had AllowOverride all, I had to change it to ‘All’.

  4. July 5th, 2009 at 04:01 | #4

    Topic of your article is very interesting, i have bookmarked your blog
    regards
    fluflaken

  5. July 19th, 2009 at 01:57 | #5

    Kebetulan lagi blogwalking, salam kenal

    Silahkan kunjungi juga blog Indodiabetes dgn judul posting .. Simposium Kaki Diabetes di negeri Belanda

  6. November 4th, 2009 at 10:33 | #6

    Makasihh… membantu sekali..

Comments are closed.