CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   .htaccess problem 403 error (http://www.codingforums.com/showthread.php?t=262783)

Taipan 05-27-2012 11:21 PM

.htaccess problem 403 error
 
Hi,

I am not very experienced with .htaccess rules etc but I have some rewrite rules that are working fine. An example is

Code:

suPHP_ConfigPath /home/mydomain/
Options +FollowSymlinks
RewriteEngine On

RewriteCond %{REQUEST_METHOD} !^POST$ [NC]
RewriteRule ^Members/([^/]+)/([^/]+)/([^/]+) index.php?page=Member&name=$1&mode=$2&album=$3 [L,QSA]
RewriteRule ^Members/([^/]+)/([^/]+) index.php?page=Member&name=$1&mode=$2 [L,QSA]
RewriteRule ^Members/(.*)$ index.php?page=Member&name=$1 [L,QSA]

A typical url might be
http://www.mydomain.com/Members/Chris/Profile

which gets rewritten to index.php?page=Member&name=Chris&mode=Profile

All works fine, or so I thought.

When editing a profile, sometimes there is a 403 error. And oddly it only happens when certain words are included in the post data. Well so far I only know of one word that causes the problem, but I doubt that would be the only one. Most of the time it works fine.

I am not 100% sure it is my .htaccess causing the problem, but it never reaches my code that will process the form so I am assuming it is. If anyone can help with this I would really appreciate it, I am stumped.


All times are GMT +1. The time now is 09:50 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.