I am creating a site with Codeigniter. I have to show the customers profile page when a customer type his username after the domain, like ” http://www.mydomain.com/username “. please give me an advice. Thanks in advance…
Share
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.
$_SERVER['REQUEST_URI']will hold this information in PHP. Your htaccess redirect should look something like:Then in index.php $_GET[‘i’] will hold the value of whatever is in the URL after the domain