Re: Error on .htaccess

From: Date: Wed, 01 Apr 2009 14:51:51 +0000
Subject: Re: Error on .htaccess
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-290920@lists.php.net to get a copy of this message
> In all the servers i had tested my system i dont have any problem, but in > this server the apache are displaying to me the error 500 "Internal Server > Error". > > Someone can say tome what is wront with my .htaccess? > > RewriteEngine On > <IfModule mod_rewrite.c> > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond $1 !-d > RewriteRule ^(.*)$ load.php?$1 [QSA,L] > </IfModule> > > This server are running PHP 5.2.9 and Apache 1.3.41 (Unix). > > Regards, > Igor Escobar > systems analyst & interface designer > www . igorescobar . com > hi Igor, try this and make sure load.php exist in your root web folder. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond $1 !-d RewriteRule ^(.*)$ /load.php?$1 [QSA,L] </IfModule> not sure what you are trying to achieve with this line RewriteRule ^(.*)$ /load.php?$1 [QSA,L] i you mean to pass the query string, replace $1 with %{QUERY_STRING} good luck virgil http://www.jampmark.com

« previous php.general (#290920) next »