The module suggest changing the Show Item alias from "v/" to "gallery/", but the htaccess entry that this creates causes drupal's /admin/settings/gallery/install to be inaccessible.
my quick fix is to add this condition to the .htaccess file for the rule in question:
RewriteCond %{REQUEST_URI} !/admin/settings/gallery
Comments
Comment #1
profix898 commentedActually its suggested that you change this rule to "gallery/v/..." (but the leading "gallery/" is crucial). Its a known issue with G2.2 that its .htaccess rules are not specific enough (see http://codex.gallery2.org/Integration:Drupal:Troubleshooting#URL_Rewrite...). I cant recall the bug report url right now (edit: I do ... http://sourceforge.net/tracker/index.php?func=detail&aid=1835153&group_i...), but its a problem on the G2 side of thing rather than in gallery module. The "gallery/" string is required because "gallery" is the callback path that triggers gallery module to show the gallery. Without it the module works in some cases (and with certain rewrite configurations), but thats mainly a side effect of the .htaccess rules and breaks completely as soon as you disable rewrite.
Comment #2
sparr commentedwell, since this is now a support request...
I have a "normal" setup with gallery in /gallery2/ and drupal in /
What should my rewrite rules for each look like? I am having trouble with gallery generating /gallery2/* URLs for things that should have shorter addresses.
specifically... in an album with a subalbum, I have a link to
http://sparrsstuff.com/gallery/BotCon_2006/
which is correct, that will take advantage of drupal's rewrite rules. but the thumbnail image for that subalbum is
http://sparrsstuff.com/gallery2/gallery/download/1825-7/BotCon_2006.jpg
where the "gallery2/" portion of that URL should not be there.
Comment #3
profix898 commentedDid you solve the rewrite issues?
Comment #4
sparr commentedno. I stopped using drupal, for mostly unrelated reasons.
Comment #5
profix898 commented