.htaccess

mehmet

Joined: 2003-12-25
Posts: 2
Posted: Thu, 2003-12-25 18:30

Please help me! Accidently, I deleted the .htaccess file from my server for Gallery. My gallery is no more fonctionning correctly. Could you help me ?

In fact I was trying to increase the capacity as it says disk overquota but I know that I have more space ...

my address : http://www.visas.be/gallery/

I'm working with Windows 2000 pro

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2003-12-25 18:44

2 options:
1. go in setup mode and let it generate a new .htaccess (perhaps you need to create an empty .htaccess before and chmod it 777 so that the gallery setup can write to it).

2. create a new .htaccess file (just an empty file called .htaccess) and put the following text in it:

# BEGIN Gallery section
# (Automatically generated.  Do no edit this section)
# Note: still under development, so format may change.
# If you edit this file, make a backup before runnng the Config. Wizard.


php_value post_max_size 20971520
php_value upload_max_filesize 20971520
php_value magic_quotes_gpc off
php_flag session.bug_compat_warn off


Options -Indexes +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /gallery/
RewriteRule ^([^\.\?/]+)/([0-9]+)$	/gallery/view_photo.php?set_albumName=$1&index=$2	[QSA]
RewriteRule ^([^\.\?/]+)/([A-Za-z_0-9\-]+)$	/gallery/view_photo.php?set_albumName=$1&id=$2	[QSA]
RewriteRule ^([^\.\?/]+)/$	/gallery/$1	[R]
RewriteRule ^([^\.\?/]+)$	/gallery/view_album.php?set_albumName=$1	[QSA]
</IfModule>
# END Gallery section.  Add User changes below this line
 
mehmet

Joined: 2003-12-25
Posts: 2
Posted: Thu, 2003-12-25 20:51

Thank you for this quick reply. I took the option number 2 but I receive now 500 Internal Server Error.
How can I use the first option? as the number 2 doesn't work...
setup mode and generate a new htaccess

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2003-12-25 22:07

- just create an empty .htaccess
- chmod .../gallery/setup 755 via ftp or shell
- chmod config.php and .htaccess 777

just finish the setup, click next next save on http://www.visas.be/gallery/setup/