I am using 4images gallery version 1.7.6 for my site & I did changes to .htaccess file which is placed within /public_html/ folder.
Code is as below .. I tried about 5-6 formats & also tried both uploading mode (Auto & ASCII)
My .htaccess file
--
RewriteEngine On
#RewriteBase /
RewriteRule ^cat-(.*)-([0-9]+)\.htm$ categories.php?cat_id=$2&%{QUERY_STRING}
RewriteRule ^cat\.htm$ categories.php?%{QUERY_STRING}
#Mod_bmollet : Image name in URL
RewriteRule ^img-(.*)-([0-9]+)\.htm$ details.php?image_id=$2&%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.search.htm$ details.php?image_id=$1&%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.lightbox.htm$ details.php?image_id=$1&%{QUERY_STRING}
#Mod_bmollet : This is to make search function work ( redirect links from search results )
RewriteRule ^search\.htm$ search.php?%{QUERY_STRING}
RewriteRule ^search\.([0-9]+)\.htm$ search.php?page=$1&%{QUERY_STRING}
RewriteRule ^lightbox\.htm$ lightbox.php?%{QUERY_STRING}
RewriteRule ^lightbox\.([0-9]+)\.htm$ lightbox.php?page=$1&%{QUERY_STRING}
---
Sessions.php which is in /gallery/includes/ folder is also modified.
I uploaded one image in category named "celeb" when .htaccess & sessions.php was not modified.
Now when I try to view that image (image name is "the-hangover-1v".jpg), I get message as below
+++++
Not Found
The requested URL /seo/img1.htm was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.25 mod_perl/2.0.4 Perl/v5.8.8 Server at
www.mysitename.com Port 80
+++
Image name is "the-hangover-1v".jpg",they why this error /img.htm I am getting.
I am only able to see home page,Kindly help me
Lots of thanks in advance.