Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: .htaccess and 403 Permission Denied Error  (Read 14037 times)

0 Members and 1 Guest are viewing this topic.

helloharoon

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
.htaccess and 403 Permission Denied Error
« on: November 02, 2007, 11:01:16 am »

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:



Code: [Select]
##  ********************************************
##  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]

« Last Edit: November 02, 2007, 03:53:29 pm by Hein »
Logged

Nibbler

  • Guest
Re: .htaccess and 403 Permission Denied Error
« Reply #1 on: November 02, 2007, 12:17:22 pm »

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

twist

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 360
    • 100iso.eu
Re: .htaccess and 403 Permission Denied Error
« Reply #2 on: November 02, 2007, 03:37:54 pm »



#  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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: .htaccess and 403 Permission Denied Error
« Reply #3 on: November 02, 2007, 07:03:17 pm »

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.
Logged

tgontz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: .htaccess and 403 Permission Denied Error
« Reply #4 on: November 21, 2008, 04:11:12 pm »

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:
Code: [Select]
Options FollowSymLinks SymLinksIfOwnerMatch
To:
Code: [Select]
#Options FollowSymLinks SymLinksIfOwnerMatch
Save the .htaccess file and your site should now be running normally.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.