Problems after changing the name of an album/directory

innova

Joined: 2010-07-20
Posts: 65
Posted: Thu, 2013-06-13 14:11

Hello, I'm using Gallery v2 with Carbon theme.

Today I've changed the name of an album, and now I'd like to redirect all of the old urls (that can be found for example in google) to the new directory, but I always get the 404 page.

I've updated the .htaccess file with the next line:
Redirect 301 /v/old-directory-album/ http://www.domain-name.com/v/new-directory-album

I've tried it using different options: adding the *, with and without the slash /, but nothing.
When I try opening an old url I get the 404 page with the next url:
http://www.domain-name.com/v/new-directory-album/?g2_path=old-directory-album/

Why is Gallery adding the code ?g2_path with the old album name?

Thanks.

 
innova

Joined: 2010-07-20
Posts: 65
Posted: Wed, 2013-08-28 14:24

From the lack of replies I suppose nobody has any anwer to my problem.
I've been looking in some other forums, and the only answer I get from people with the same problem is taht Gallery uses its own RewriteRules (url rewrite module) and when you put a redirect 301 code in the .htaccess file they don't get along very well.
I suppose I could deactivate the rewrite module, but I don't want back the long urls.
If any body has any ideas, let me know please.

Thanks.