So i have a url like this to display images on some html this is how it works right now
subdomain.example.com/?img=foo.png
I was wondering if it was possible to hide the ?img= part of the url so the url would look something like this
subdomain.example.com/foo.png
And still make the page show the html and css i have in my code
Use rewrite:
rewrite ^/(.*) /?img=$1 last;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With