Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_rewrite causing 403 forbidden?

Status
Not open for further replies.
Aug 23, 2004
174
0
0
US
Here is my htaccess code:
Code:
RewriteEngine on

RewriteCond %{REQUEST_FILENAME}  !-d
RewriteCond %{REQUEST_FILENAME}  !-f
RewriteRule ^([0-9a-zA-Z-]+)/?([0-9a-zA-Z-]+)?/?([0-9a-zA-Z-]+)?/?([0-9a-zA-Z-]+)?/?([0-9a-zA-Z-]+)?/?$ index.php?s1=$1&s2=$2&$

I have AllowOverride All set on the virtual host in my config file.

Im on Linux with Apache/2.0.52 and php 4.3.9
 
perhaps not related but have you checked that the IP address you are testing from is in your "allow from" in httpd.conf? AllowOveride is more to do with .htpasswd i think.

403 forbidden would be seen if you are denied access to the directory via IP restriction or via permissions to that directory.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top