Member
Member
seroxatmad   20-04-2012, 16:32
#1

Hi
Before I started using zenpage with zenphoto I was using wordpress and zenphoto.

Basically i am after directing old traffic to www.thestottfamily.co.uk/gallery to www.thestottfamily.co.uk

I have looked on the apache website but dont look easy...

John

Administrator
Administrator
acrylian   20-04-2012, 16:43
#2

And the question exactly is? How to remove the "gallery" in the url? That is simple, install in the root. If you wish to rewrite the old wordpress links that is a little more complicated and depends what type of url you used.

Member
Member
seroxatmad   20-04-2012, 16:47
#3

Sorry

I want anything that is sent to www.thestottfamily.co.uk/gallery (the old setup) directed to www,thestottfamily.co.uk if possible

Zenphoto used to be installed in the gallery directory now it is in the root directory as i only use zenphoto.

Thanks

Administrator
Administrator
acrylian   20-04-2012, 17:14
#4

THen move all files into the root and re-run setup to let it fix the htaccess rewrite base. That's all.

Member
Member
Michel Gagnon   21-04-2012, 04:47
#5

What Acrylian suggests will take care of the Zenphoto stuff. In other words, your gallery will work fine. But if you want traffic that used to go to www.thestottfamily.co.uk/gallery to be redirected automatically, you could do the following:

  1. Create a copy of the existing ".htaccess" file. Name it ".htaccess-date" or something like that (just in case).

  2. Open the ".htaccess" file. Write either of the following code just under the line "#### put no rules before this line ### ":

  3. To move everything to the corresponding hierarchy but at root level:
    `

    Redirect from gallery to same place in root


    RewriteRule ^gallery(.*)$ $1 [R=301]
     
    `
    As far as I see, it will work unless one of your albums happens to be called "gallery". Then, you won't be able to access it.

Administrator
Administrator
acrylian   21-04-2012, 09:49
#6

Good addition, Michel.

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