![]() |
|
Hard URLs - 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: Hard URLs (/thread-1046.html) |
Hard URLs - SubJunk - 2007-01-06 Hi, is there a way to have zenphoto generate URLs that are normal instead of PHP queries? So instead of having, say, "index.php?image=blabla" it would be "/image/blabla"? Hard URLs - pearofducks - 2007-01-06 try this: global $_zp_current_image; Hard URLs - Chilifrei64 - 2007-01-06 or you could enable mod-rewrite in the zp-config.php then edit your .htaccess file accordingly. This is obviously apache only.. Hard URLs - trisweb - 2007-01-06 Correct, that's what mod_rewrite does. You need to have apache, the mod_rewrite module, and a correctly configured .htaccess for it to work. There are a lot of posts on the forums if you need help. Hard URLs - SubJunk - 2007-01-07 Ah okay, I wondered what all this mod rewrite business was about. I'll look it up, thanks guys Hard URLs - SubJunk - 2007-01-07 Okay I've never used this before... I have the link URLs working, but having a little trouble with the image ones. Hard URLs - SubJunk - 2007-01-07 My URL ones that are working are: RewriteRule ^(.*)/ /index.php?album=$1` Hard URLs - SubJunk - 2007-01-07 Ohh I see it's already in the htaccess file. I wasn't using the htaccess that came with zenphoto. Sorry for the silly questions haha |