Member
Member
syrupcore   28-01-2008, 13:29
#1

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

Administrator
Administrator
acrylian   28-01-2008, 13:47
#2

Looking at your link, you renamed the folder zenphoto resides in, right? You just need to change this line within zenphoto's htaccess, too :
` #### !!! 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

Member
Member
syrupcore   28-01-2008, 15:50
#3

Thanks acrylian.

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.

Administrator
Administrator
acrylian   28-01-2008, 19:10
#4

I am not an expert, try RedirectMatch permanent photos/her/(.*) photos/dora/

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.