RE: [PHP] 404 Not Found -> refresh to directory

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: RE: [PHP] 404 Not Found -> refresh to directory
Groups: php.general 
Request: Send a blank email to php-general+get-218743@lists.php.net to get a copy of this message
An interesting idea. I'll work on this next week and see how it goes. Can I ask: why two versions of $uriparams? Terry -----Original Message----- From: Andras Kende <andras@kende.com> Sent: Jul 14, 2005 9:53 PM To: 'Terry Romine' <terry_romine@earthlink.net>, 'php' <php-general@lists.php.net> Subject: RE: [PHP] 404 Not Found -> refresh to directory .htaccess: RewriteEngine on RewriteRule ^([\w-]+)$ index.php/$1 index.php: <?php $uriparams = explode("/",$REQUEST_URI); $uriparams = explode("?",$REQUEST_URI); $agent = $uriparams[0]; $agent = eregi_replace("/","",$agent); // Select from mysql where agent = agent etc.. etc.. echo ("Location: agent_profile.php?agent=".$agent); ?> Best regards, Andras Kende http://www.kende.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#218743) next »