Hi,
I just renamed an album directory from "/her/" to "/dora/". New album works fine. I'm trying to ensure that any one who erroneously visits /her/ gets redirected to /dora/. I tried a few variations of this line in my .htaccess file:
RewriteRule ^/her(/)?$ /dora/
to no avail. I always get "Zenphoto Error: the requested object was not found. Please go back and try again." What am I missing?
Thanks
Comments
` #### !!! Change this to the web path (eg: http://www.yourwebsite.com/photos --> /photos) !!!
RewriteBase /zenphoto
####`
Regarding the redirection: You could try something like this:
`RedirectMatch permanent /dora`
I haven't tested it (and it's not really a zenphoto problem). For further info see here: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
I had the rewrite base set but something was/is wrong with my rewrite rule. I've used RedirectMatch like this:
`RedirectMatch permanent photos/her/.* photos/dora/ `
which does the trick but it's sorta funny. When I enter http://luktown.org/photos/her/ into the browser I get redirected to http://luktown.org/photos/dora/?album=her/ Works fine but I wish I had a clue about how/why.
Thank you for your help.