Page 1 of 1
Rewriting URL's
Posted: Sun Nov 27, 2005 5:33 pm
by shoxlx
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
Posted: Sun Nov 27, 2005 5:46 pm
by Chris Corbyn
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

Posted: Sun Nov 27, 2005 5:51 pm
by John Cartwright
Moved to Misc.
Posted: Tue Dec 27, 2005 12:12 pm
by shoxlx
but i dont use apache... i use abyss... how would i go about doin this
Posted: Tue Dec 27, 2005 12:52 pm
by Gambler
Posted: Tue Dec 27, 2005 12:58 pm
by josh
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
Posted: Tue Dec 27, 2005 3:37 pm
by Chris Corbyn
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