Re: Best Practice to Create Dynamic URL's- With Username

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2009-09-21 at 13:24 +0530, Gaurav Kumar wrote:
> Hi All,
> 
> I am creating a social networking website. I want that every user should
> have there own profile page with a static URL like-
> 
> http://www.abcnetwork/user/username
> 
> Where username will be dynamic userid or something else.
> 
> This is something very similar to www.youtube.com/user/kumargauravmail (this
> is my profile page).
> 
> So what should be the best practice to create such DYNAMIC URL's OR what
> kind of methodology youtube is following?
> 
> Thanks in Advance.
> 
> Gaurav Kumar
> OSWebstudio.com

If you're working on an Apache server, your best bet is to look at
mod_rewrite. You can write a simple rule to match against these sorts of
URL formats, so that to your visitors it appears as if the actual path
exists, but internally it can get translated to something like
http://www.abcnetwork.com/profile.php?id=username 

Thanks,
Ash
http://www.ashleysheridan.co.uk




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux