PDA

View Full Version : suggestion for 1.5... shortening urls


Evanrich
2nd of September 2003 (Tue), 18:48
Hey Pekka.. heres a great suggestion. when you give a direct link url to a photo to someone, it looks like this:

http://www.modelxposure.com/gallery/photo.php?photo=808&exhibition=20

now.. i've looked at the MySql tables on my site, and each photo is assigned a unique number, hence this particular picture is image number 808... now even if you delete a picture, the count still increments... so if i were to delete 807 and 808, the next image would still be 809. This brings me to the point of my post. Since each image has a unique identifier, why not just delete the &exhibition= part and make the url shorter? would be slightly easier to type and remember.

so instead of: http://www.modelxposure.com/gallery/photo.php?photo=808&exhibition=20

couldn't it just be: http://www.modelxposure.com/gallery/photo.php?photo=808


thanks again...

Evan

Pekka
3rd of September 2003 (Wed), 14:37
Yes, this can be done even now. EE 1.5 beta 1 can currently find the photo if the exhibition it belongs to is public one (pass is 'public'), so you _can_ omit
"&exhibition=xx" from links.

I'll see how this works as a setting in EE and that there is absolutely no possibilty of getting some unneccessary 'not found' error messages.