You are here: RE: [PHP] 404 Not Found -> refresh to directory « PHP « IT news, forums, messages
RE: [PHP] 404 Not Found -> refresh to directory

Posted by Terry Romine on 10/07/77 11:21

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация