Using XAMPP (windows) htaccess troubles

software development

#1

Hi,

I wanted to be able to program and test locally on my windows machine. So I found out about XAMPP which works great and is easy to setup. I’m having one little problem: I have an .htaccess file that I put in the directory of my page that is needed for me to continue using the zend framework.

my .htaccess file contains:
RewriteEngine on
RewriteRule .* index.php

php_flag magic_quotes_gpc off
php_flag register_globals off

when i try to visit my site:
Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
localhost
11/24/07 14:51:29
Apache/2.2.6 (Win32) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.4

I’m confused becasue I thought mod_rewrite is on…but I’m sorta new to mod_rewrite so I figured I’d ask here and see if theres somethig i missed with .htaccess files?

thanks in advance,
kareem


#2

[code]RewriteEngine on
RewriteRule .* index.php

php_flag magic_quotes_gpc off
php_flag register_globals off[/code]1. Oops! Forgot to use a RewriteCond to exclude index.php

  1. DreamHost runs PHP as CGI, the php directives will have no affect

:cool: openvein.org -//- One-time [color=#6600CC]$50.00 discount[/color] on [color=#0000CC]DreamHost[/color] plans: Use ATROPOS7