Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2009
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile What is this term called?

    Hey Ive been looking around the net trying to find out what this process is called in your guys terms, so the member logs in after creating an account and the php makes a page for him/her to promote say www.mypage.com/bob-jim

    something like that, Ive tried searching for php replicating pages. if any one could give me a name to the mumbo jumbo i just wrote that would be really good or even a link to a good place for some similar tutorials examples. Ive just mastered making the login script took me just over 1 month. probably ages but man it felt good once it was all working

  • #2
    Regular Coder Iszak's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Western Australia
    Posts
    332
    Thanks
    2
    Thanked 58 Times in 57 Posts
    You want to look into the apache module "mod_rewrite" which will allow you to redirect all URLs from say http://www.mypage.com/*/ to the users profile. An example (not really intended for use) of this would be like.

    Code:
    RewriteEngine On
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ([^/]+) profile.php?user=$1 [L]
    Last edited by Iszak; 03-11-2009 at 09:45 AM. Reason: bracket


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •