Member
Member
lovlss   2007-06-28, 03:04
#1

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.

Member
Member
DarrellD   2007-06-28, 03:25
#2

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.

Member
Member
lovlss   2007-06-28, 20:00
#3

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?

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.