How to invention login url as the same facebook ?(PHP)
+ Example
www.abc.com
+After login
user=a1
www.abc.com/a1/index.php
user=a2
www.abc.com/a2/index.php
How to invent this in PHP?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re using PHP, you probably are using Apache with mod_rewrite. An .htaccess rule similar to this will rewrite the username part of the path into a variable accessible to PHP:
This will take a URL like
/foobar/index.phpand map it to the fileuserhome.php, with the variable$_GET['username']set tofoobar.