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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.