Jump to content

Personal URL on myspace


djoxer

Recommended Posts

Hi everyone,

 

I'm trying to duplicate the same effect on my site that myspace.com has on theirs.  What they do is give each person a unique url that they can use in promotion.  However, when a user clicks, they are sent to a page that is taken from the database.

 

Here is what I mean: 

 

This is the url that I use to go directly to a person's page:  http://www.myspace.com/myuniquename

This is the real url that is brought up:  http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=123456789

 

Myspace uses ColdFusion, but Indieheaven does the same thing with PHP.  Can I do this without creating a lot of folders on my site and redirecting?

 

Thanks,

 

Dan

Link to comment
Share on other sites

yes, the idea is you make a special 404 page (unknow location) that would take the url explode it at that slash and then you got the username.  However this  will be a bit over generalzied because it will 404 on eveything you might want to make it more specialized like if $url is in the form on domain.com/subfolder

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.