View Single Post
Old 02-08-2005, 01:06 PM  
rickholio
Confirmed User
 
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
Quote:
Originally Posted by acctman
i'm trying to make the default user profiles url http://www.qwerty.com/profile.php?user=john appear as http://www.qwerty.com/john and also be able to use http://www.qwerty.com/john/ with the slash. i want this for all users

i've tried a few rewrites and ended up just blocking the site
So what are you trying to do here, exactly... push a user from profile.php?user=blah to /blah? If so, just use a

header("Location: http://www.qwerty.com/$_GET[user]")

or similar in your php page.

If you're trying to map /john (or /john/) to profile.php?user=john, that gets a little more interesting, because then ANY subdirectory would have to be considered a profile request. Is that what you're after?
rickholio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote