.htaccess is this possible?

Discussion in 'HTML & Website Design' started by Master Merlin, Jun 25, 2008.

  1. #1
    Greetings,

    I wonder is it possible to make .htaccess redirect you to a predefied page if you enter a certain username and password?

    What i mean:
    Username: adam
    Pass: 34124
    Redirect to: http://www.adam.com

    Username: sssu
    Password: jacsk
    Redirect to: http://www.google.com

    And so on...

    Is this possible to be done with HTACCESS? if not is there some script that can?

    Thanks in advance.
     
    Master Merlin, Jun 25, 2008 IP
  2. dustin0

    dustin0 Active Member

    Messages:
    104
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    dustin0, Jun 25, 2008 IP
  3. Master Merlin

    Master Merlin Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ugh how to make this work?
     
    Master Merlin, Jun 25, 2008 IP
  4. iamben

    iamben Active Member

    Messages:
    116
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #4
    You could code it in PHP pretty easily.

    Just look for some PHP login tutorials, and then add a field to the database that has a default location for each login or something along those lines.
     
    iamben, Jun 25, 2008 IP
  5. DeeJayEl

    DeeJayEl Peon

    Messages:
    91
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    dustin0 gave you the simplest way to do it. Check out the examples in the link he sent you.
     
    DeeJayEl, Jun 25, 2008 IP