How to alias a php page to look like abcxyz.com/MYALIAS
Posted: Wed Jul 22, 2009 12:59 pm
Hi all,
I think this should go under the PHP code forum, but if not, mods please move it accordingly or PM me and I'll delete it.
Basically I'm looking to run a single PHP script that will take the info after the backslash and accordingly process the corresponding data.
I.e. say I have a website: http://www.abcxyz.com, and I wish users to be able to make accounts on there but not have to remember some long URL like http://www.abcxyz.com/page.php?user=joe, rather I want to be able to type into the URL http://www.abcxyz.com/joe and be able to use my page.php script to parse that data and bring up the corresponding page. (think what myspace/facebook does)
i'm not sure if PHP is the correct/best method for this, I did find some resource on http://www.php.net/urlhowto.php where it details some info regarding how the search is performed if no exact file is found, but it's not really clear.
does anyone have any reccomendations or tips?
cheers,
card
I think this should go under the PHP code forum, but if not, mods please move it accordingly or PM me and I'll delete it.
Basically I'm looking to run a single PHP script that will take the info after the backslash and accordingly process the corresponding data.
I.e. say I have a website: http://www.abcxyz.com, and I wish users to be able to make accounts on there but not have to remember some long URL like http://www.abcxyz.com/page.php?user=joe, rather I want to be able to type into the URL http://www.abcxyz.com/joe and be able to use my page.php script to parse that data and bring up the corresponding page. (think what myspace/facebook does)
i'm not sure if PHP is the correct/best method for this, I did find some resource on http://www.php.net/urlhowto.php where it details some info regarding how the search is performed if no exact file is found, but it's not really clear.
does anyone have any reccomendations or tips?
cheers,
card