If you would like to have "pretty" URL's in wordpress, you can configure this using the "Permalinks" setting in the admin site (wp-admin). If you select the option "Month and name" this will result in pretty url's, such as category/news.
If when you do this, the pages do not load, then you may need to update your apache settings. Below are the steps I followed.
Assumes you already have the mod_rewrite installed already.
- backup your .htacess file in the root directory of your wordpress site
- modify httpd.conf (this file should be in the conf dir under your apache install dir)
LoadModule rewrite_module modules/mod_rewrite.so
- modify httpd.conf
Find the lines below and set AllowOverride to All
# Options FileInfo AuthConfig Limit
Now you can delete your .htaccess, go into the admin site, permalinks, select default, save, then select Month and name, then save. A new .htaccess should be created and you should be in business.
The following instructions are for installing apache and php on Windows XP:
- Download the apache msi from the apache website
- Run the msi, you can use localhost for the Domain and Server. The admin email can be what you like
- If you choose the default install dir, the files will be placed at C:\Program Files\Apache Software Foundation\Apache2.2
- By defualt the "home" directory is htdocs
- If you are running IIS on the same server, it will be using port 80, so you need to change apache to use another port to do this edit the conf\httpd.conf file:
- Restart apache, then you should be able to browse to http://localhost:8000
- If you want to change the home directory edit httpd.conf:
and change the <Directory...> to
- Next for the php install, download the latest php zip file (I downloaded php-5.2.8)
- Unzip to program files\php-5.2.8
- Copy php.ini.dist to C:\Windows and rename to php.ini
- Now we configure apache to run php
- Copy php5ts.dll to the bin dir under your apache install directory
- Edit http.conf to include:
LoadModule php5_module "C:/Program Files/php-5.2.8/php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
- Restart apache
- Create a file in your home dir (by default htpdocs) called info.php and add:
<? phpinfo(); ?>
- Browse to http://localhost:8000/info.php and you should see your system info