djoxer Posted July 10, 2007 Share Posted July 10, 2007 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 Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 10, 2007 Share Posted July 10, 2007 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 Quote Link to comment Share on other sites More sharing options...
djoxer Posted July 10, 2007 Author Share Posted July 10, 2007 I'm using a subfolder on a remote host. I don't think I can do a 404 page. I tried using a global variables file to check the url for a particular folder name, but it sent me to a 404. Dan Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 10, 2007 Share Posted July 10, 2007 than maybe you should stick to get vars if you don't have or are uncomfortable medaling in the .htaccess Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.