Site Admin link doesn't work after ... (SOLVED)

lfslinux

Joined: 2003-08-31
Posts: 4
Posted: Sat, 2005-09-10 22:58

I accidentally lost the contents of the .htaccess file while URL Rewrites were enabled.

Now I can't get to "Site Admin" anymore after I login. The URL the link points to

/gallery/admin/?g2_return=blah

doens't exist. I'm guessing /admin/ is supposed to be an URL rewrite entry. How do I turn off URL Rewrites when Site Admin isn't accessible?

<b>EDIT</b>

Solved it by modifying the matching entry in the g2_Rewrite_Map table, then generated a new .htaccess file from Site Admin's URL Rewrite.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-10 23:18

(also, you can go to README.html, in readme, there's a link to site admin that doesn't use the short url notation)

 
fijiantribe

Joined: 2005-10-19
Posts: 5
Posted: Wed, 2005-10-19 18:25

I have this same problem after upgrading from 1.0 to 2.01... the entire install seemed to go ok, no problems, but the link is off.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-10-19 18:38

"the link is off"

that's not enough information to help you. you got to describe your problem in more detail.

else:
see the faq, search function of the forum, etc.

 
fijiantribe

Joined: 2005-10-19
Posts: 5
Posted: Wed, 2005-10-19 18:51

I have upgraded from 1.0 to 2.01.
I am following the upgrade instructions and logged in.
When I get to the part of clicking on Site Admin, the URL comes back as:

".../gallery/admin/?g2_return=http..."

I change it to ".../gallery/admin?g2_return=http..."

And seem to get to the right page (however having separate problems there).

I am assuming as well that the "/" between admin and g2... is not supposed to be there.

How can I fix this?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-10-19 18:56

wrong.

please disable the url rewrite module.

FAQ: Images don't show up and the album / photo links don't work, what can I do?

ps: upgrade from 1.0 to 2.0.1 doesn;t make sense. it's either 2.0 to 2.0.1 (G2 version) or 1.0 to 1.0.0.1 (core module version).

 
fijiantribe

Joined: 2005-10-19
Posts: 5
Posted: Wed, 2005-10-19 19:18

Sorry, I meant installed and migrated.

I think I figured out what i did wrong in the steps.
I copies and renamed the gallery to g1
I should have just renamed to g1

so I upploaded g2 into gallery, which still contained the old files.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-10-19 19:28

just follow the steps described in:
http://codex.gallery2.org/index.php/Gallery2:migration

and the instructions in:
site admin -> import from G1