Dear all,
i am having a very big problem at the moment,someone is designing my future website and told me that one of my request was impossible.
they have created a website where bands will open an account and have their own page.the problem is i need the band name to follow the site url.
ie:
if the site is called:
http://www.thisismysite.com
and a band called bhfffr open an account with us,i would like the band to put their band name is a requiered input field and then get a url specially for them like this one:
http://www.thisismysite.com/bhfffr
and not something like i am actually having:
http://www.thisismysite.com/store.php/bhfffr
is this possible in php?
the programmers i have hired told me this could cause a security problem because the file name would be seen by everyone.
the question is:
how can big sites like http://www.soundclick.com provide this kind of service???
how does all of this work,has anyone an idea please????
thank you very much ,
regards to all.
ben
How to shorten an URL in PHP?
Moderator: General Moderators
You are looking for an apache rewrite rule.
Code: Select all
RewriteEngine On
RewriteRule ^([a-z0-9]{3,25}$ band_page.php?band=$1Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA