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
Terry Romine mailto:[EMAIL PROTECTED]
on Thursday, July 14, 2005 1:52 PM said:
I have a website that has several hundred agents in a mysql database.
The client wants to be able to enter the domain.com/agentname and be
redirected to a standard page where we show the agent information.
-Original Message-
From: Terry Romine [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 14, 2005 3:52 PM
To: php
Subject: [PHP] 404 Not Found - refresh to directory
I have a website that has several hundred agents in a mysql database. The
client wants to be able to enter the
3 matches
Mail list logo