Deru Knowledgebase
Search:     Advanced search
Browse by category:
Contact Us

Album access issue in Gallery

Views: 1884
Votes: 9
Posted: 10 Sep, 2009
by: Joseph S.
Updated: 10 Sep, 2009
by: Joseph S.
You may face some issue in accessing the albums or subalbum links in the Gallery.

You need to add proper rewrite rule in ".htaccess" of gallery to make the album working

Check whether "post_max_size, upload_max_filesize, magic_quotes_gpc and session.save_handler are setup properly.

If it is not present in the .htaccess file (in the Gallery folder) add the following lines to it.

php_value post_max_size 20971520
php_value upload_max_filesize 20971520
php_value magic_quotes_gpc off
php_value session.save_handler files



The following rewrite rules are needed for the working of albums and subalbums in the Gallery

Options -Indexes +FollowSymLinks

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /gallery/

RewriteCond % !-d
RewriteRule ^([^\.\?/]+)/([0-9]+)$      /gallery/view_photo.php?set_albumName=$1&index=$2       [QSA]
RewriteCond % !-d
RewriteRule ^([^\.\?/]+)/([A-Za-z_0-9\-]+)$     /gallery/view_photo.php?set_albumName=$1&id=$2  [QSA]
RewriteCond % !-d
RewriteRule ^([^\.\?/]+)/$      /gallery/$1     [R]
RewriteCond % !-d
RewriteRule ^([^\.\?/]+)$       /gallery/view_album.php?set_albumName=$1        [QSA]
</IfModule>


This will fix all the issue with gallery albums and subalbum hyperlinks.
Others in this Category
document CGI: debugging Internal Server Error
document Running php4 and php5 together in server
document Configuring mod_jk for apache in Cpanel server ?
document How do you use different characterset using .htaccess?
document Useful Exim Commands.
document How you replace your php fopen function with curl?
document How to use curl to get the file contents
document How to install SSH2 for PHP Shell?
document "Execute command denied to user" error while taking site.
document How to install APC (Alternative PHP Cache)
document Steps to enable SMTP Authentication - in different email clients
document The changes done in the httpd.conf hasn't reflected.
document Uploading files to your website
document How to repair databases from cPanel?
document Configuring Default Address /catch-all address in cPanel:
document How to configure your email account in Iphone
document Configuring email account in MAC OS
document Cpanel License error
document Redirecting domain without reflecting in address bar
document How to improve site loading performance
document Steps to install mrtg on cPanel servers:



RSS