Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-10-18 11:48:11

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Login to Textpattern (www.mysite.com/textpattern) ends in a 404 page

When I go to www.mysite.com/textpattern I get a Textpattern generated 404 page.
when I enter instead …/textpattern/index.php I get the Login screen.

This is probably a simple thing to fix, but I have no clue what could cause this behaviour.

Greetz

Last edited by [Axel] (2013-10-18 11:48:24)


Greetz [Axel]

Offline

#2 2013-10-18 11:59:33

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Login to Textpattern (www.mysite.com/textpattern) ends in a 404 page

Sounds like someone hasn’t configured Apache (or some other web server your server is using) to use index.php as directory index, or hasn’t loaded the base-stack’s mod_dir extension. Given that you are getting 404 error instead of a file list, you neither have mod_autoindex installed or enabled, but that is more of so a good thing. That said, I truly hope this isn’t indication that the server is running on some Apache stock example configuration.

Anyhow, to define directory index do what the above linked docs suggest. Basically load mod_dir.c in server conf, if it isn’t, and define the DirectoryIndex directive in .htaccess file or in the server conf. E.g.

<ifModule mod_dir.c>
    DirectoryIndex index.php index.html
</ifModule>

Last edited by Gocom (2013-10-18 12:02:34)

Offline

#3 2013-10-18 12:13:53

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: Login to Textpattern (www.mysite.com/textpattern) ends in a 404 page

I have 3 Textpattern installations on that server. 2 of them work as supposed, and only one is giving the 404.
the web-page works fine with clean URLs. and only when I try to go to ./textpattern/ I get the 404, with the web page layout like it should be when someone tries to to whatever non existing page.

I’m sure it has to do with textpattern itself, if it would be Apache then I would get a default browser 404 instead of the Textpattern 404


Greetz [Axel]

Offline

#4 2013-10-18 12:54:29

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Login to Textpattern (www.mysite.com/textpattern) ends in a 404 page

Are you nesting Textpattern installation directories? If so, the .htaccess rules have a change of interfering with each other. Try configuring RewriteBase, and avoid nesting installations.

Axel wrote:

I’m sure it has to do with textpattern itself, if it would be Apache then I would get a default browser 404 instead of the Textpattern 404

We don’t handle requests, Apache gives them to us when it run into request that doesn’t point to a valid resource; this means Textpattern will also server error pages.

Browsers itself do not handle HTTP error statuses or their pages. They are just normal documents like any other page, and are always given by the server. Exceptions are when the response doesn’t have body1, or when the browser can not connect to the server2.

1 Well, Chrome does, or did, check the response body size on certain HTTP status codes (500, 503).

2 Browsers like robots.

Last edited by Gocom (2013-10-18 12:56:09)

Offline

#5 2013-10-18 13:20:46

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: Login to Textpattern (www.mysite.com/textpattern) ends in a 404 page

nothing is nested, all have the same .htaccess file, and the Indian is configured to handle all domains the same way. That’s why I thought Textpattern is not “forwarding” the request to the login page, but instead handles it as a non existing section/category/article within the site.


Greetz [Axel]

Offline

Board footer

Powered by FluxBB