XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).
Moderator: General Moderators
shoxlx
Forum Newbie
Posts: 23 Joined: Tue Oct 11, 2005 10:42 pm
Post
by shoxlx » Sun Nov 27, 2005 5:33 pm
i want a user to type in
http://www.shoxlx.com/THEIRNAME .
the folder THEIRNAME wont exist though... i want a script to take the THEIRNAME part and send them to a page where a php script can process their request. how do i go about doing this??
p.s. sry bout the subjuct title... couldnt think of one... lol
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Sun Nov 27, 2005 5:46 pm
I've editted your thread title for you
The keyword's you're searching for (here, google and apache.org) are mod_rewrite and rewrite rules.
There's quite a few threads on this board about it. Regex knowledge will get you started faster
shoxlx
Forum Newbie
Posts: 23 Joined: Tue Oct 11, 2005 10:42 pm
Post
by shoxlx » Tue Dec 27, 2005 12:12 pm
but i dont use apache... i use abyss... how would i go about doin this
Gambler
Forum Contributor
Posts: 246 Joined: Thu Dec 08, 2005 7:10 pm
Post
by Gambler » Tue Dec 27, 2005 12:52 pm
josh
DevNet Master
Posts: 4872 Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida
Post
by josh » Tue Dec 27, 2005 12:58 pm
hmm, I used abyss once... quite a nifty little server although I don't recall it having a rewriting engine, use apache it's much more powerfull
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Tue Dec 27, 2005 3:37 pm
You can use PHP to change the query string separators from "?" and "&".... but I'm not sure it would allow you to use "/" for obvious reasons
Try it anyway. There's a setting for it in php.ini