mod rewrite question/help

First I want to say thanks to the developers because zenphoto is great. I tried other photo gallery web apps and like you guys said they do too much and gave me a headache *coughs* gallery2 *cough cough*.

My question or help request is can mod rewrite be modified so that the images file extension be dropped?

example.com/albumname/imagename instead of example.com/albumname/imagename.jpg

As of now the urls look like the one on the right. I have everything setup and installed the default way with mod_rewrite enabled.

Thanks.

Comments

  • So long as you have the newest version of ZP, you should look in your zp-config.php file. There's a section which states the following:

    `// If mod_rewrite is true above, zenphoto's image page URL's usually end in .jpg,

    // set this if you want something else appended to the end (helps search engines).

    // Examples: .html, .php, /view, etc.

    $conf['mod_rewrite_image_suffix'] = '.php';`

    You can just try setting it to `$conf['mod_rewrite_image_suffix'] = '';` to see if it would not put an extension on it.
  • lovlss Member
    As of now thats the way I have it setup, with nothing written in the suffix portion and it writes urls like:

    example.com/albumname/imagename.jpg

    Like in the example I tried the /view and it does:

    example.com/albumname/imagename.jpg/view

    So regardless the .jpg has always been there. Any ideas?
Sign In or Register to comment.