Hello, I'm jsut installing Gallery2 full pack.
All my gallery settings are good except the last one:
Initial User Synchronization

When I click on "Sync users/groups" or "Skyp sync", I have this:

Forbidden

You don't have permission to access /.htaccess/index.php on this server.

But it's in all my website in fact....

After studies:

The addind codes into my .htacess is:

# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)

RewriteEngine On

RewriteBase /.htaccess/

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

RewriteCond %{THE_REQUEST} /.htaccess/d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/.htaccess/index\.php$
RewriteRule . /sites/all/modules/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} /.htaccess/v/([^?]+)\.davmount(\?.|\ .)
RewriteCond %{REQUEST_URI} !/.htaccess/index\.php$
RewriteRule . /.htaccess/index.php?q=gallery&g2_view=webdav.DownloadDavMount&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /.htaccess/w(/[^?]*)?(\?.|\ .)
RewriteCond %{REQUEST_URI} !/.htaccess/index\.php$
RewriteRule . /.htaccess/index.php?q=gallery&g2_controller=webdav.WebDav&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /.htaccess/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/.htaccess/index\.php$
RewriteRule . /.htaccess/index.php?q=gallery&g2_path=%1 [QSA,L]

# END Url Rewrite section

If I take off the adding codes, my website works fine but Gallery settings are not set anymore...

I don't know what I have to do...

Any ideas?

Thanks^^

sorry for my english

Comments

Junro’s picture

Nobody?

profix898’s picture

Check the path to .htaccess as specified in the rewrite section of G2 admin. It should be pointing to the folder containing .htaccess not to the file itself. ATM all you rewrite rules are prefixed with .htaccess/ due to this wrong setting ('/.htaccess/index.php' is not a valid path).

Junro’s picture

Thanks, It's working ^^.

Fixed

profix898’s picture

Status: Active » Closed (fixed)