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.
Posts: 32509
(also, you can go to README.html, in readme, there's a link to site admin that doesn't use the short url notation)
Posts: 5
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.
Posts: 32509
"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.
Posts: 5
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?
Posts: 32509
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).
Posts: 5
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.
Posts: 32509
just follow the steps described in:
http://codex.gallery2.org/index.php/Gallery2:migration
and the instructions in:
site admin -> import from G1