I wondering how I should code an index.php/controller to be able to display an image using an url like domain.com/imageid. Right now I’m displaying images using e.g domain.com/?image=imageid and collect it with $_GET superglobal array.
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.
Just use rewrite_mod of apache.
In your root directory, create a file named
.htaccessand write this in it :