The image verification code you entered is incorrect.

Gallery module also called Gallery2 module: CleanURLs

Problem:
Ok so you did every thing right and you still can not get Clean URLs (URL rewrite module) to work with the embed of Gallery2.

Here is what finally worked for me:
1) Got to the "URL Rewrite Administration" within Drupal (embed), this is important as some additional embed specific fields will appear.
2) Go to the "Setup" tab and enter a value for "Htaccess path:" pointing to your Drupal install (ex on Windows:  E:\DomZeus\anciensducairecom\wwwroot), not to your G2 folder!

For "Public path:" I just put "/" (my Drupal root)

Additional step if you do not use a .htaccess with Drupal (like me).

3) The previous steps generate a .htaccess file (in the Drupal root). I pretty much copied the URL rewrite rules, from that .htaccess file, to my Apache configuration file where my current Drupal rules are.

Here is what these G2 rules look like:

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_FILENAME} !/index\.php$
RewriteRule . - [L]


RewriteCond %{THE_REQUEST} \ /gallery/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !/index\.php$
RewriteRule . /index.php?q=gallery&g2_view=core.ShowItem&g2_path=%1 [QSA,L]

Man oh man! Spent nearly all-day on this one....



Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
More information about formatting options Captcha Image: you will need to recognize the text in it.
Please type in the letters/numbers that are shown in the image above.