Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-02-25 04:02:55

aslsw66
Member
From: Canberra, Australia
Registered: 2004-08-04
Posts: 342
Website

403 error on saving

I’ve just moved over my hosting to a new provider, and finally copied everything over.

However, I now find that saving some forms at the backend is resulting in a 403 error. I haven’t rigorously tested this, but it appears to be the forms with more content in them as lots of forms save normally.

I’ve searched around in the forums to see what others have found, and tried the solutions suggested. But with no luck – the problem is persisting.

Based on the solutions that seemed to work for others, here’s what I have done so far…

Firstly, I added some lines to my main .htaccess file. It now reads as follows:

#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]

RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php

RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

Secondly, I created a new .htaccess file to go in my /textpattern folder:

<IfModule mod_security.c>
SecFilterScanPOST Off
SecFilterEngine Off

</IfModule>

Frankly, I didn’t think it would really matter but being desperate I tried anyway.

Neither of these has changed anything. Clearly, it’s something to do with how my new provider has set up their servers, but can anyone suggest what it might be? I would like to be a bit more specific when I contact their support.

Thanks.

Offline

#2 2012-02-28 00:59:04

aslsw66
Member
From: Canberra, Australia
Registered: 2004-08-04
Posts: 342
Website

Re: 403 error on saving

Just for the record, the problem is at the hosting side. They don’t allow me to override mod_security, and the content of some forms is triggering some sort of security rule. They have said that they will fix this for me.

Offline

#3 2012-02-28 20:36:06

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: 403 error on saving

Was it mod_security 2?

Offline

Board footer

Powered by FluxBB