Image page extensions

I have upgraded Zenphoto from 1.4.4.8 to 1.4.6. Image page extensions have changed from .jpg.php to .jpg.

The former were not very appropriate, but having an html page with a .jpg extension seems silly.

Is there a way to change rewrite rules or a parameter to set to modify the extensions to .php ?

Comments

  • acrylian Administrator, Developer
    It is an option as it was before so you can add any extension called "modrewrite suffix" on the options > gallery. Actually it should not have changed on an upgrade. Still we did only test 1.4.5 to 1.4.6 specifially.

    However it turned out that the default of ".php" triggered modsecurity software so ".html" or none is recommended.
  • kilroy Member
    Ok thanks.
    This restored the old URLs with .jpg.php.
    Any way to get URLs without the .jpg part?
  • acrylian Administrator, Developer
    No, the image name is mandatory as it always was to differ the image pages from non image pages.
  • Give ZenPhoto20 a try, the current master branch contains an option for just what you want, no ".jpg" in the link.
  • MarkRH Member
    Hmmm.. I was wondering about this myself. Just now looking at these ZenPhoto (variants) since the current system my gallery is based has gone into "hibernation": http://galleryproject.org/

    Anyway, my current gallery image pages have URLs like: http://gallery.markheadrick.com/misc-pics/Jacky_June1983/ which is how Google and everything else is linked to my site.

    Ultimately I can deal with making any rewrite rules needed for both the image pages and the images themselves and can probably get into the code and make it do what I want but the less of that I have to do, the better. I should probably make my own thread and list everything I want to be able to do to see if it can be done with the base installation and/or plug-ins.

    Mark H.
  • acrylian Administrator, Developer
    It is currenty not possible to remove the image suffix from the image page urls. Indeed it was never an issue for anyone before as far as I can remember. I do understand the issue regarding SEO of course. The link you cited would be to the subalbum "Jacky_June1983" of the album "misc-pics" currently.

    We here are not involved in the other version.
Sign In or Register to comment.