In my server root I have a directory called “repos”.
I would like request like “server-name/repos/identifier” to call the “repos/index.php?id=identifier”, where identifier is something the user can chose.
How do I accomplish this with .htaccess?
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.
You can either put these rules in your document root:
or if you’d rather put rules in an htaccess file in the
/reposdirectory: