Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-27-2012, 11:21 PM   PM User | #1
Taipan
New Coder

 
Join Date: Mar 2004
Posts: 95
Thanks: 8
Thanked 0 Times in 0 Posts
Taipan is an unknown quantity at this point
.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.
Taipan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:12 PM.


Advertisement
Log in to turn off these ads.