aerouk / imageserve

A ShareX image hosting solution for your own domain.
https://iaero.me/imageserve
GNU General Public License v2.0
127 stars 34 forks source link

Can I Change This? #34

Closed hyperdefined closed 7 years ago

hyperdefined commented 7 years ago

Can I remove the /w/, /g/, or /j/ from the url? Not the raw link, but this kind: https://demihypercube.space/i/g/4tCGS

aerouk commented 7 years ago

? #25

It doesn't allow each type of image to be found using the hash alone but you can do like /h7Sdx.jpg or whatever instead of /j/h7Sdx. If you want additional functionality, implement it yourself.

hyperdefined commented 7 years ago

This is my .htaccess. I removed the "g/", "j/", and "w/" on lines 15-17.
This is what happens when I remove it: https://demihypercube.space/i/wPevr.png <-- Works. https://demihypercube.space/i/wPevr <-- Doesn't work.

When I add them back, both of the links work.

aerouk commented 7 years ago

Because now it doesn't know what type of image it's trying to find. Solution for your problem isn't implemented.

On 9 May 2017, at 8:44 pm, demihypercube notifications@github.com wrote:

This is my .htaccess. I just removed the /j/g/w in the front and now it broke PNGs. Using .png works, but removing it doesn't.

https://demihypercube.space/i/wPevr.png <-- Works. https://demihypercube.space/i/wPevr <-- Doesn't work.

I don't see why PNGs broke, I didn't change that line.

― You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.