URL translation like mod_rewrite

From: Date: Tue, 20 Jan 2004 19:01:22 +0000
Subject: URL translation like mod_rewrite
Groups: php.general 
Request: Send a blank email to php-general+get-175182@lists.php.net to get a copy of this message
Hi all, My hosting company won't let me use rewrite rules in my Apache configuration files, and told me to use "the php header() functions and a .htaccess file" instead of the rewrite rules. I don't know php and I'm looking over some php help files right now, but I found this list and was hoping someone can point me in the right direction. Or tell me that this won't work. What I want to do is have a visitor to my web site enter a userid after the domain name, and have apache or php grab the userid and send it to a script. Something like this: http://domain.name/denny => http://domain.name/cgi-bin/script.cgi?userid=denny Can this be done with php? I already have another page with a login form that will send someone to the script. For marketing reasons, I don't want login forms or other ways of getting them there. I'm assuming the use of the .htaccess will involve the normal popup box asking for a userid/password. Can that be avoided? Thanks Denzil --------------------------------- Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

« previous php.general (#175182) next »