301 Redirecting Problem - Not that easy as you think to fix this problem

taskmaster1

Joined: 2011-01-26
Posts: 23
Posted: Mon, 2012-01-30 20:38

I have the Gallery 1.6 ,now I need to redirect all the old image pages to new and redesigned URLS not related to Gallery.

Gallery is in a folder /gallery/

So what I have tried - i wanted to redirect a page, but I need to redirect 4000 pages all in all, so will take time.
Ex.

redirect 301 /gallery/3D/3D_2 http://www.mysite.com/3d-p/3d-space/red-space/

in /gallery/ is my .htaccess i used, this redirection lead me to my homepage, with this url

http://www.mysite.com/?set_albumName=3D&id=3D_2

So how can I make real redirections

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2012-01-31 16:31

Hi,

where is the Gallery Question in your post? ;-)

Its looks more like e.g. an Apache mod_rewrite and redirect question.
http://www.mcanerin.com/en/articles/301-redirect-apache.asp

Whats your requirement here towards Gallery ?

Regards
Jens
--
Gallery 1.6-RC Developer

 
taskmaster1

Joined: 2011-01-26
Posts: 23
Posted: Tue, 2012-01-31 17:52

RewriteRule ^oldgallery$ http://www.domain.com/new-url/ [R=301,L] thasts the solution. Regarding gallery, it is a gallery question, be cause its not that easy to redirect from gallery to new pages be cause of 2 htaccess in folders in gallery, but i have got the solution as you see.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2012-01-31 17:57

Glad you got it solved

Jens
--
Maybe Gallery 1.7 Developer