.htaccess and 403 Permission Denied Error .htaccess and 403 Permission Denied Error
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

.htaccess and 403 Permission Denied Error

Started by helloharoon, November 02, 2007, 11:01:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

helloharoon

Dear Sir
i have found an error,

403 Permission Denied
You do not have permission for this request /alqamargallery/

kindly help


my .htaccess file is as under:



##  ********************************************
##  Coppermine Photo Gallery
##  ************************
##  Copyright (c) 2003-2006 Coppermine Dev Team
##  v1.1 originaly written by Gregory DEMAR
##
##  This program is free software; you can redistribute it and/or modify
##  it under the terms of the GNU General Public License as published by
##  the Free Software Foundation; either version 2 of the License, or
##  (at your option) any later version.
##  ********************************************
##  Coppermine version: 1.4.9
##  $Source$
##  $Revision: 3231 $
##  $Author: nibbler999 $
##  $Date: 2006-08-16 15:05:39 +0200 (Mi, 16 Aug 2006) $
##  ********************************************

Options FollowSymLinks SymLinksIfOwnerMatch

RewriteEngine on

#  Uncomment the following line if your webserver's
#  URL is not directly related to physical file paths.
#  Update "YOUR_COPPERMINE_ROOT" (just / for root)

#RewriteBase /YOUR_COPPERMINE_ROOT

#
# Rewrite index urls
#
RewriteRule index-([0-9]*)\.html index.php?cat=$1 [NC]

RewriteRule index-([0-9]*)-page-([0-9]*)\.html index.php?cat=$1&page=$2 [NC]

#
# Rewrite thumbnail urls
#
RewriteRule thumbnails-([a-z0-9]*)-([\-]?[0-9]*)\.html thumbnails.php?album=$1&cat=$2 [NC]

RewriteRule thumbnails-([a-z0-9]*)-page-([0-9]*)\.html thumbnails.php?album=$1&page=$2 [NC]

RewriteRule thumbnails-([a-z0-9]*)-([\-]?[0-9]*)-page-([0-9]*)\.html thumbnails.php?album=$1&cat=$2&page=$3 [NC]

RewriteRule thumbnails-([0-9a-z]*)\.html thumbnails.php?album=$1 [NC]

RewriteRule thumbnails-search-(.*)\.html thumbnails.php?album=search&search=$1 [NC]


#
# Rewrite displayimage urls
#
RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)\.html displayimage.php?album=$1&cat=$2&pos=$3 [NC]

RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)\.html displayimage.php?album=$1&pos=$2 [NC]

RewriteRule displayimage-([0-9]+)\.html displayimage.php?pos=-$1 [NC]

RewriteRule slideshow-([0-9]+)-([\-]?[0-9]+)-([0-9]+)\.html displayimage.php?album=$1&pid=$2&slideshow=$3 [NC]

RewriteRule slideshow-([a-z]+)-([\-]?[0-9]+)-([0-9]+)-([0-9]+)\.html displayimage.php?album=$1&cat=$2&pid=$3&slideshow=$4 [NC]


Nibbler

Delete the .htaccess file and uninstall the SEF urls plugin.

twist

Quote from: helloharoon on November 02, 2007, 11:01:16 AM


#  Uncomment the following line if your webserver's
#  URL is not directly related to physical file paths.
#  Update "YOUR_COPPERMINE_ROOT" (just / for root)

#RewriteBase /YOUR_COPPERMINE_ROOT



You must set that to get SEF plugin workin

Joachim Müller

Don't use the SEF_URL plugin at all if you have no idea what it does, what the target audience is nor what the drawbacks are.

tgontz

If you are getting 403 Forbidden errors after enabling the SEF plugin this may be one possible solution. If your webhost already has Options FollowSymLinks turned on at the server level turning it on again (which the SEF plugin's .htaccess file does) will cause this error. So open your .htacces file (while the plugin is still installed!) and look to see if Options FollowSymLinks is uncommented. If it is then try commenting it out. See below.

Specifically, change:
Options FollowSymLinks SymLinksIfOwnerMatch

To:
#Options FollowSymLinks SymLinksIfOwnerMatch

Save the .htaccess file and your site should now be running normally.