Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-11-05 00:24:31

cangka
New Member
Registered: 2011-11-05
Posts: 9

Help! likely .htaccess problem, articles can't save

My stupid web host changed something, and now we can’t save articles. It’s VERY strange stuff. if we edit either excerpt or body, when we hit save it simply loads the home page and does NOT edit the article! if I delete my unmodified .htaccess file, i get a 403 error attempting to save. i’ve played with the .htaccess a little bit but have been unable to get it working:

DirectoryIndex index.php index.html

Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /

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

dying here! the stock values all worked before. anyone have this problem? ideas? thanks.

Offline

#2 2011-11-05 01:01:49

cangka
New Member
Registered: 2011-11-05
Posts: 9

Re: Help! likely .htaccess problem, articles can't save

Additional information: really weird. I can make text-only edits. i can place break tags <br /> but if i paste an img src tag, and save, i am redirected to the home page with the above .htaccess. what would cause it to treat these differently?

Offline

#3 2011-11-05 01:06:19

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: Help! likely .htaccess problem, articles can't save

If memory doesn’t completeley leave me here, we’ve had some problems with saving here that could be cured with this one.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#4 2011-11-05 03:37:18

cangka
New Member
Registered: 2011-11-05
Posts: 9

Re: Help! likely .htaccess problem, articles can't save

Thanks, but adding this to the .htaccess file:

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

Didn’t appear to change anything. It still redirects to the homepage instead of saving content if i add an image or do anything other than edit text content.

Offline

#5 2011-11-05 03:41:44

cangka
New Member
Registered: 2011-11-05
Posts: 9

Re: Help! likely .htaccess problem, articles can't save

If it’s helpful in diagnosing the problem, the site is hosted at Webspacehosting.com – the only txp site i’ve ever set up there.

Offline

#6 2011-11-05 06:39:09

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,012
Website GitHub Mastodon Twitter

Re: Help! likely .htaccess problem, articles can't save

Try adding on the top of the htaccess: SecFilterEngine Off and if that doesn’t work add SecFilterScanPOST Off just below it


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2011-11-05 14:35:41

cangka
New Member
Registered: 2011-11-05
Posts: 9

Re: Help! likely .htaccess problem, articles can't save

Getting a 500 error when adding “SecFilterEngine Off” to my .htaccess file, with or without SecFilterScanPOST Off present.

Offline

#8 2011-11-05 14:58:23

cangka
New Member
Registered: 2011-11-05
Posts: 9

Re: Help! likely .htaccess problem, articles can't save

Stupid question: there’s only one .htaccess file I’m concerned with, just in the root directory—right?

Offline

#9 2011-11-05 15:39:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,012
Website GitHub Mastodon Twitter

Re: Help! likely .htaccess problem, articles can't save

We are talking about the htaccess which comes with txp

Try only adding SecFilterScanPOST Off and let us know if that returns a 500 or solves the situation


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#10 2011-11-05 17:10:04

cangka
New Member
Registered: 2011-11-05
Posts: 9

Re: Help! likely .htaccess problem, articles can't save

SecFilterScanPOST Off – adding this causes the site to return a 500 error.

with no .htaccess file at all the site and txp backend load, but attempts to save an article with an img src tag added return a 406—not acceptable error.

with the stock textpattern 4.4.1 .htaccess file, which worked before whatever happened here happened, attempts to save an article load the site’s homepage without saving.

I hope this helps with diagnosis. Thank you very much!

Offline

#11 2011-11-05 17:12:14

cangka
New Member
Registered: 2011-11-05
Posts: 9

Re: Help! likely .htaccess problem, articles can't save

Also, if this is helpful, here is my diagnostic check info:

Textpattern version: 4.4.1 (r3575)
Last Update: 2011-11-04 23:36:42/2011-11-04 23:35:58
Document root: /home3/urbanmus/public_html
$path_to_site: /home3/urbanmus/public_html
Textpattern path: /home3/urbanmus/public_html/textpattern
Permanent link mode: messy
open_basedir: /home3/urbanmus:/usr/lib/php:/usr/local/lib/php:/tmp
Temporary directory path: /tmp
Site URL: urbanmushrooms.com
PHP version: 5.2.17
GD Image Library: version bundled (2.0.34 compatible), supported formats: GIF, JPG, PNG
Server TZ: America/New_York
Server Local Time: 2011-11-05 13:11:35
DST enabled?: 0
Automatically adjust DST setting?: 0
Time Zone: (+68400)
MySQL: 5.0.92-community-log
Locale: en_US.UTF-8
Server: Apache
Apache version: Apache
PHP Server API: apache2handler
RFC 2616 headers:
Server OS: Linux 2.6.18-274.7.1.el5
Active plugins: hak_tinymce-0.9.9
Admin-side theme: classic 4.4.1

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html

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

<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

————————————

Offline

#12 2011-11-05 17:35:49

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,012
Website GitHub Mastodon Twitter

Re: Help! likely .htaccess problem, articles can't save

Sorry to come up with what might be useless suggestions but what happens if you disable the hak_tinymce plugin?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB