Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
Re: 403 error on saving
Was it mod_security 2?
Offline
Pages: 1