First, I've been pulling my hair trying to resolve this problem, I really would like to be able to have clean urls.
First I running on Windows 8 using XAMPP ( I now wish I was using Linux ).
I made sure that my .htaccess file does indeed start with a period
Here the .access file
# Script 2.7 - .htaccess<IfModule mod_rewrite.c>
# Turn on the engine:RewriteEngine on
# Set the base to this directory:RewriteBase /chapter02/
# Redirect certain paths to index.php:RewriteRule
^(about|contact|this|that|search)/?$ index.p
</IfModule>
here's the bottom of my httpd.conf file
# AJP13 Proxy<IfModule mod_proxy.c><IfModule
mod_proxy_ajp.c>Include
"conf/extra/httpd-ajp.conf"</IfModule></IfModule><Directory
"c:/xampp/htdocs/php_test/chapter02"> AllowOverride
All</Directory>
and here's part of my config.inc.php file
// Determine location of files and the URL of the site:// Allow for
development on different servers.if ($local) {
// Always debug when running
locally: $debug =
TRUE; // Define the
constants: define('BASE_URI',
'c:/xampp/htdocs/php_test/chapter02'); define('BASE_URL',
'http://localhost/php_test/chapter02/'); define('DB',
'/path/to/mysql.inc.php'); } else {
define('BASE_URI',
'/path/to/live/html/folder/'); define('BASE_URL',
'http://www.example.com/'); define('DB',
'/path/to/live/mysql.inc.php'); }
Like I said I've been pulling my hair out, stopping apache server, restarting it, modifying code, restarting (even rebooting my machine once). I even did a Google search trying various "fixes" and even this forum. Any help would be greatly appreciated.
I know it is probably something stupid that I'm doing.
Best Regards,
John