PDA

View Full Version : .htaccess problem


ccollingsworth
05-28-2007, 07:11 AM
i have an .htaccess file in a directory that calls for

# Custom php.ini
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi


This piece of code is part of a customized php.ini as described at http://wiki.dreamhost.com/Custom_PHP.ini.

However, I also have some rewrite rules in my .htaccess. They say if the user goes to www.domain.com/user/myUsername, to get the page from www.domain.com/user.php?user=myUsername.

The problem is that I keep getting a conflict. If I access www.domain.com/user/myUsername, I get a 404 error saying that www.domain.com/cgi-bin/user/myUsername does not exist. It has to do something with the customized php.ini file. I'm not sure what to do. Any help or advice would be truly appreciated.