Welcome! Log In Create A New Profile

Advanced

Rewrite the images folder url

Posted by loredana 
Rewrite the images folder url
May 13, 2011 11:25AM
Hello all,

How can I make in nginx some kind of rule to do this:

I have the images folder:

/uploads/images

I would want that every request to: /uploads/images/my-image.jpg to go to
my-images-script.php
and the my-images-script.php should return the image, or 404 ( according to the project's specs ).
But I would not want the user to see that my-images-script.php is being called.

How can I do that ?

Thank you all.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 115
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready