[SOLVED] Moving my G2 site

mfoster711

Joined: 2005-03-06
Posts: 118
Posted: Sun, 2005-04-17 06:37

Is there a simple way to move my G2 site from a subdirectory on my website to the main directory? If I just move the files will it cause the database to freak out?

I installed G2 under [url]www.markafoster.com/g2[/url] and I have G1 under [url]www.markafoster.com[/url]. I want to delete G1 and move G2 to my main website.

Currently I am redirecting traffic to my main site to my subdirectory.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-04-17 10:08

i assume you have beta 2
1. deactivate the url rewrite module (and short urls if you run beta 1)
2. move * in g2 to ../. (just move the contents of the g2 folder 1 directory above)
3. edit config.php:
- if your g2data dir was within the g2 directory, you have to edit the corresponding config value in config.php
- edit the galleryId at the end of the file, remove the "g2" part
- save config.php
4. finito (you may now uninstall/install/activate the url rewrite module again)

 
VampireDeluxe
VampireDeluxe's picture

Joined: 2005-04-14
Posts: 12
Posted: Mon, 2005-04-18 11:38

i have the same problem......

my gallery should be changed from

http://gallery.z1000ev.de/gallery3

to

http://gallery.z1000ev.de/

but what is with the databank????? and tie htaccess data???

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-04-18 11:56

VampireDeluxe, follow my steps and you're done.
the database doesn't need any change when you move the gallery from one folder to another.

 
VampireDeluxe
VampireDeluxe's picture

Joined: 2005-04-14
Posts: 12
Posted: Mon, 2005-04-18 17:40

thanks a lot

it works.....

http://gallery.z1000ev.de/main.php

THX

 
mfoster711

Joined: 2005-03-06
Posts: 118
Posted: Wed, 2005-04-20 03:43

Vampire, I tried going to your site and it shows an error page. Did it really work for you? I have been meaning to try it out but have not had time.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-04-20 11:19

mfoster711, has another problem now. moving g2 works.
i've added the instructions to the FAQ.