![]() |
|
mod_rewrite driving me mad - 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 driving me mad (/thread-1883.html) |
mod_rewrite driving me mad - hanshenderickx - 2007-12-01 Hello, i have a mod_rewrite problem that's driving me mad. I want to translate URL's like this : index.php?sid=11&album=habitats-prives/projet-006 "When mod_rewrite's on, my URL's are translated interally in php: But zenphoto doesn't recognize (webroot)/sid/11/habitats-prives/projet-006 I've added this to .htaccess : It works, but then off course it redirects to the ugly URL. When I change [R,L] into [L,QSA] I get this error message : Do I have to add some stuff in template_functions.php? Which lines do i need to modify ?? mod_rewrite driving me mad - trisweb - 2007-12-01 Zenphoto uses internal PHP rewriting in functions-controller.php to get the album and image names, as mod_rewrite itself is very buggy and unreliable. Also, it's the only way to make sub-albums work correctly. Why are you trying to add the "sid" variable? What is it needed for? |