Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-10-12 21:09:59

Rianne
New Member
Registered: 2010-10-12
Posts: 5

404 error - editing, posting etc.

Hello guyz.
I’m getting the 404 error when I try to perform some actions in admin panel. Like writing, editing and changing sections.
I wonder if it has something to do with my .htacess

Textpattern version: 4.0.3 
Last Update: 2008-05-30 19:05:01/2009-01-19 11:36:15
Document root: /home/www/z91949/htdocs
$path_to_site: /home/www/z91949/htdocs
Textpattern path: /home/www/z91949/htdocs/textpattern
Permanent link mode: messy
Temporary directory path: /home/www/z91949/htdocs/textpattern/tmp
Site URL: *.*
PHP version: 5.2.0-8+etch16
Register globals: 1
Server Local Time: 2010-10-13 01:07:47
MySQL: 5.0.51a-24+lenny3-log
Locale: en_US.UTF-8
Server: Apache/1.3.34 (Debian)
PHP Server API: cgi-fcgi
Server OS: Linux 2.6.18-6-686-bigmem

.htaccess file contents: 
------------------------
DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
RewriteEngine On
#RewriteCond %{HTTP_REFERER} !^$
# ������ ������ ����������� �������
#RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?*1.*.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?*1.*:80.*$ [NC]
#RewriteRule .*\.(zip|rar)$ *.*/atata.jpg [NC,L]

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^(.+) - [PT,L]

 RewriteRule ^(.*) index.php
</IfModule>

#php_value register_globals 0

I had to do some changes in it in order to avoid hot-linking to my zip/rar archives.

Thanks in advice.

(added bc.. -Els)

Last edited by els (2010-10-12 21:20:23)

Offline

#2 2010-10-12 21:19:12

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: 404 error - editing, posting etc.

You can try if this helps.

Edit: no idea what that line in your .htaccess is or should be…

Last edited by els (2010-10-12 21:21:08)

Offline

#3 2010-10-12 21:22:37

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: 404 error - editing, posting etc.

If those rewrite rules are supposed to work, you’d better uncomment them…

Offline

#4 2010-10-12 21:32:30

Rianne
New Member
Registered: 2010-10-12
Posts: 5

Re: 404 error - editing, posting etc.

The SecFilterScanPOST Off in /textpattern is simply giving me 500 error. Tried it already.

I have no idea what’s working here (such a shame). Al least no one can download zip/rars directly from others sites.. this is for sure.

Offline

#5 2010-10-12 22:13:26

Rianne
New Member
Registered: 2010-10-12
Posts: 5

Re: 404 error - editing, posting etc.

DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
RewriteEngine On
#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?mysite.com.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?mysite1.com:80.*$ [NC]
#RewriteRule .*\.(zip|rar)$ mysite.com/atata.jpg [NC,L]

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^(.+) - [PT,L]

 RewriteRule ^(.*) index.php
</IfModule>

 #php_value register_globals 0

As happened before with aarplane, I’m being redirected to http://mysite.com/textpattern/index.php
But I can change parameters on Preferences page. It’s just the content I can’t… arrgh

Offline

#6 2010-10-13 11:00:57

Rianne
New Member
Registered: 2010-10-12
Posts: 5

Re: 404 error - editing, posting etc.

Didn’t give me any errors, but still not working

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

Any ideas?

Offline

#7 2010-10-13 11:02:50

Rianne
New Member
Registered: 2010-10-12
Posts: 5

Re: 404 error - editing, posting etc.

And if it helps, the error is

404 Not Found

nginx/0.4.13

Offline

#8 2010-10-13 15:00:05

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

Re: 404 error - editing, posting etc.

did you try SecFilterScanPOST Off without <IfModule mod_security.c></IfModule>?… you did:)

Last edited by colak (2010-10-13 15:01:24)


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

Offline

#9 2010-10-14 20:39:31

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: 404 error - editing, posting etc.

Textpattern version: 4.0.3

Why don’t you upgrade first ;)

Offline

#10 2010-10-23 10:25:23

seess
New Member
Registered: 2010-10-23
Posts: 1

Re: 404 error - editing, posting etc.

It seems your codes are ok

Last edited by seess (2010-10-23 10:29:53)

Offline

Board footer

Powered by FluxBB