Jump to content

Dynamic URLs


bcoffin

Recommended Posts

I'm building an intranet for my company and want to be able to give my coworkers (there are about 150) the ability to create their own news/photos pages. I took a look at MySpace and certainly don't want anything that complicated but was wondering how they do the dynamic URLs part..

ie: if my site lives at:
http://intranet/

how do I configure my web server (or better yet, just the PHP code), so that if an employee does create his own page, then I can use:

http://intranet/alan
http://intranet/betty
http://intranet/charlie

and have that URL actually resolve instead of say "Page Not Found"

I'd rather not create all these web directories one by one, or even have the php create them and copy the necessary scripts into the folders. Is there a way to use apache look-back, or php $_SERVER global to just place the script in the webroot and grab these values?

Thanks all,

benny
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.