403 Forbidden

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

403 Forbidden

Post by John Cartwright »

Ok! Well, I have an htaccess file in /root/web/share/, and when I add to my blank htaccess RewriteEngine On I get
Forbidden

You don't have permission to access /share/ on this server.
Apache/2.0.52 (Win32) PHP/4.3.10 Server at localhost Port 80
I have no idea why mod rewrite is causing this, any ideas?
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

Total guess but maybe:

Code: Select all

Options +FollowSymLinks
EDIT: before any rewrite stuff
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Does this happen when you have just the blank .htaccess file in there? If not, are the entire contents of that .htaccess file:

Code: Select all

RewriteEngine On
???
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Buddha443556 wrote:Total guess but maybe:

Code: Select all

Options +FollowSymLinks
If you are refering to the actual httpd.conf then could you be a bit more specific.
If you are refering to the .htaccess file, the rewrite engine on is the only thing on the file.
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

Jcart wrote:
Buddha443556 wrote:Total guess but maybe:

Code: Select all

Options +FollowSymLinks
If you are refering to the actual httpd.conf then could you be a bit more specific.
If you are refering to the .htaccess file, the rewrite engine on is the only thing on the file.
I was referring to the .htaccess. Yes, put it before the rewrite engine on.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Oh cool, seemed to work.. could you explain?
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

Jcart wrote:Oh cool, seemed to work.. could you explain?
Mod_Rewrite needs to be able to follow symlinks, that just turned them on.
Post Reply