Forum Moderators: phranque
Here's the htaccess file which sits at the root of the site:
Options +FollowSymLinks
php_flag register_globals 0
IndexIgnore */*
DirectoryIndex index.php
<FilesMatch "^(products¦about¦reviews¦news¦workshops¦artists¦downloads¦charities¦search¦con
tact¦terms¦special_offer)$">
SetHandler php-script
ForceType application/x-httpd-php
</FilesMatch>
What it does is enable friendly URLS:: if you browse to site/reviews/, it should execute the php file named "reviews" (no .php) located in site/. Instead, xampp is ignoring this directive and producing a 404 as this directory does not exist. If I leave off the trailing slash, it attempts to download the file rather than executing it according to the directive. I don't want to change the basic method of working with urls in the htaccess file since it works perfectly fine on the live server and my windows laptop (which is NOT using xampp), and the files themselves contain more code for virtual subdirectories. what i'd like to do is see if there is a setting in xampp that needs tweeking ... maybe an httpd conf directive.
i've tried playing around with the httpd.conf and setting everything as loose as possible (security is not an issue in this case) as well as moving the LoadModule rewrite_module modules/mod_rewrite.so directive to above the LoadModule cache_module modules/mod_cache.so (one example of a seemingly halfbaked solution that I found). still no dice.
any help would be much appreciated, thx a lot!
<FilesMatch "^(products¦about¦<snip>¦terms¦special_off[b]er)/?$">[/b]
Jim