Downgraded from G3 to G2. Can't redirect URLs with hypens to URLs with plus signs

andreste

Joined: 2006-06-02
Posts: 123
Posted: Tue, 2013-06-04 14:26

I had to start from scratch my Gallery installation due to tons of problems with Gallery3. So I got back to Gallery 2. The problem now is that I have tons of links in Google with hypens but the website now has plus signs again, for example http://www.mysite.com/celebrities/v/celebs/female/Abi+Titmuss/

I tried adding this my .htaccess


RewriteBase /celebrities/
RewriteRule ^([^-]*)-(.*)$ $1+$2 [R=301,L]

and it does work, BUT now all my photos and thumbnails are gone. So that's not the right syntax.
What's wrong with it? How can I have it correct only the URLs and not everything else?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-06-04 14:53

you just need to disable rewrite in gallery admin, delete the old .htaccess and re-setup rewrite in gallery admin again.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
andreste

Joined: 2006-06-02
Posts: 123
Posted: Tue, 2013-06-04 16:40

Thanks for your reply, I tried that but nothing has changed :-((