Can't access gallery site admin...

canyonbreeze

Joined: 2009-05-06
Posts: 5
Posted: Wed, 2009-05-06 23:33

Trying to configure the URL rewrite rules in gallery2 messed something up. (Embedded in Drupal 6.11). Now whenever I click on 'Site Admin' in gallery it goes to the Drupal administration page. It does this even if I access in standalone mode.

embedded .htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /gallery2/
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_URI} !/gallery2/main\.php$
    RewriteRule .   -   [L]
    RewriteCond %{THE_REQUEST} /gallery/v/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/gallery2/main\.php$
    RewriteRule .   /gallery2/main.php?g2_path=%1   [QSA,L]
</IfModule>

drupal .htaccess

<FilesMatch "\.(engine|inc|info|install|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$">
  Order allow,deny
</FilesMatch>

Options -Indexes

Options +FollowSymLinks

ErrorDocument 404 /index.php

<Files favicon.ico>
  ErrorDocument 404 "The requested file favicon.ico was not found."
</Files>

DirectoryIndex index.php

# PHP 5, Apache 2.
<IfModule mod_php5.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>

<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault A1209600
  ExpiresByType text/html A1
</IfModule>

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{HTTP_HOST} ^www\.sys666\.net$ [NC]
  RewriteRule ^(.*)$ http://sys666.net/$1 [L,R=301]
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>

Any ideas?

 
canyonbreeze

Joined: 2009-05-06
Posts: 5
Posted: Thu, 2009-05-07 16:05

Found it. In Drupal gallery settings install I had the public path to the Drupal .htaccess pointed correctly but the absolute path pointing to the gallery2 subdirectory.