Zenphoto overrides rewrite rules in htaccess?

Since Google unfortunately has a lot of ghost links in its database (i.e. links to images on my website that never existed at the location Google thinks they are) I need to do redirects which usually I’d do in the .htaccess

But it seams that Zenphoto catches all 404 errors, no matter what I try. Even if I put rewrite rules right in the beginning of the htaccess in the Zenphoto root folder, still Zenphoto catches the requests and delivers a standard 404 error page.

Is there any way I can get my rewrite rules working without Zenphoto taking over?

Example:

Google is looking for:

http://www.cruisetricks.de/bilder/ms-europa/ms-europa-kabinen-suiten/570-kabinen-ms-europa-2965

while the actual URL is:

http://www.cruisetricks.de/bilder/albums/ms-europa/ms-europa-kabinen-suiten/570-kabinen-ms-europa-2965.jpg

So a simple

RewriteRule ^bilder/((.+)([0-9]))$ /bilder/albums/$1.jpg [L]

in the Zenphoto’s htaccess should do the trick – but it doesn’t. Instead I get the Zenphoto standard 404 error page …

Thanks a lot!
Franz

Comments

Sign In or Register to comment.