Making a URL Redirect - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Making a URL Redirect

nimboyanimboya Posts: 3Member
Please i need someone to help me explain how i can create a URL redirect. What i actually mean is a short URL

for example when a user register's in your website. he/she will have a special name to open his personal page automatcally

for example www.example.com/myname

thank you

Comments

  • stephen_sweenstephen_sween Posts: 4Member
    Hello
    Not sure what you mean but if your talking about a log in then when the login is correct you can us this to redirect to a page.

    header("Location: myaccount.php");

    Then use cookies or sessions to find who it is!

    Just dont put it after otherwise it want redirect! Better on a empty php page with no html!

    Hope this helps!

    Stephen
  • johncooperjohncooper Posts: 1Member
    header("Location:test.php");
    header("Location:test.php",15);
  • fairytalesfairytales Posts: 1Member
    I agree with johncooper!
    fairy talesprivo shoes
Sign In or Register to comment.