I am trying to achieve the following:
If a given URL is:
http://example.com/abcdef
then, the web app should understand it as:
http://example.com/index.php?id=abcdef
BTW…i am a PHP and Apache beginner. What would be my best solution?
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.
Look into Apache’s mod_rewrite. It matches URLs using regex, so you should look into some tutorials on that if you want to rewrite your own URLs. There are also plenty of tutorials on basic URL rewriting too.