|
Posted by NC on 05/09/06 01:20
PD wrote:
>
> How do I go about creating personal user url on the site
> like it is done on MySpace.com
>
> The personal url for user1 will look like www.myWebSite.com/user1
Use mod_rewrite:
http://httpd.apache.org/docs/mod/mod_rewrite.html
With mod_rewrite, you can define URL rewriting rules. Say, every time
Apache receives a request to show /user1, it would actually show, say,
/index.php?user=user1. Since no redirection is involved, the user
still sees /user1 in her browser's address bar...
Cheers,
NC
Navigation:
[Reply to this message]
|