ZenphotoCMS Forum
mod rewrite question/help - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: mod rewrite question/help (/thread-1506.html)



mod rewrite question/help - lovlss - 2007-06-28

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.




mod rewrite question/help - DarrellD - 2007-06-28

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.




mod rewrite question/help - lovlss - 2007-06-28

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?