Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-06-25 15:18:35

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

404 not working when wrong title in /section/title URL mode

hi,

in one of my sites, when I point to an URL with a wrong article title, it doesn’t return the 404 page. :(
Example: http://www.exaudi.com.ar/diario/this-article-doesnt-exist

But if I point to a wrong section name, the 404 is triggered as expected:
Example: http://www.exaudi.com.ar/dariario/

This are my low diagnostics:

<pre><code>
Versi&#243;n de Textpattern&#58; 4&#46;0&#46;3 &#40;r1188&#41;

last&#95;update&#58; 2006&#45;02&#45;12 21&#58;32&#58;59&#47;2005&#45;12&#45;26 17&#58;49&#58;56
Document root&#58; &#47;home&#47;exaudi&#47;public&#95;html

&#36;path&#95;to&#95;site&#58; &#47;home&#47;exaudi&#47;public&#95;html
Path a Textpattern&#58; &#47;home&#47;exaudi&#47;public&#95;html&#47;textpattern
Modo de enlace permanente&#58; section&#95;title
Directorio temporal&#58; &#47;home&#47;exaudi&#47;public&#95;html&#47;textpattern&#47;tmp
Dominio web&#58; www&#46;exaudi&#46;com&#46;ar
Versi&#243;n de PHP&#58; 4&#46;3&#46;11
server&#95;time&#58; 2006&#45;06&#45;25 12&#58;10&#58;01
MySQL&#58; 4&#46;1&#46;19&#45;standard
Local&#58; es&#95;ES&#46;UTF&#45;8
Servidor&#58;

php&#95;sapi&#95;mode&#58; cgi
os&#95;version&#58; Linux 2&#46;6&#46;9&#45;22&#46;ELsmp

Comprobaci&#243;n previa&#58;
&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;
El modo de URL limpia s&#243;lo para Apache

&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;

contenidos del archivo &#46;htaccess&#58;
&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;
&#35;DirectoryIndex index&#46;php index&#46;html
&#35;Options &#43;FollowSymLinks
&#35;RewriteBase &#47;relative&#47;web&#47;path&#47;

&#60;IfModule mod&#95;rewrite&#46;c&#62; RewriteEngine On RewriteCond &#37;&#123;HTTP&#95;HOST&#125; &#94;exaudi&#92;&#46;com&#46;ar&#36; &#91;NC&#93; RewriteRule &#94;&#40;&#46;&#42;&#41;&#36; http&#58;&#47;&#47;www&#46;exaudi&#46;com&#46;ar&#47;&#36;1 &#91;R&#61;301&#44;L&#93;

RewriteCond &#37;&#123;REQUEST&#95;FILENAME&#125; &#45;f &#91;OR&#93; RewriteCond &#37;&#123;REQUEST&#95;FILENAME&#125; &#45;d RewriteRule &#94;&#40;&#46;&#43;&#41; &#45; &#91;PT&#44;L&#93; RewriteRule &#94;&#40;&#46;&#42;&#41; index&#46;php &#60;&#47;IfModule&#62;

&#35;php&#95;value register&#95;globals 0
</code></pre>

I have other sites in the same hosting company (but not in the same server) that are working correctly. The only significant difference (at least, for my ignorance) is that those others are in a PHP 4.4.2 enviroment while the above, as you can see, is in PHP 4.3.11

Thanks in advance.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#2 2006-06-25 15:24:14

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: 404 not working when wrong title in /section/title URL mode

I have other sites in the same hosting company (but not in the same server) that are working correctly.

Are they both using the exact same url-mode (section/title)?

It’s possible that some plugins are interfering. Are you able to turn off all plugins and test it again?

Offline

#3 2006-06-25 15:29:18

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: 404 not working when wrong title in /section/title URL mode

Mmmmmm.
It seems to be related with rss_unlimited_categories v0.3 plug-in. I have disabled it and then, URL with wrong title returns a 404.

With older versions (v0.1), it doesn’t seems to happen.

BTW, I have found another thing: I have pointed the browser to an URL of an article that exists but that its currently status is hidden.
http://www.exaudi.com.ar/diario/digitalmar-techno-activity

It returns an “empty” page. I mean, the page template is parsed but were the article should be showed, there is a blank space.
Is that what I have to expect?
I’m not totally sure, but I think I would prefer a 404 when an article is hidden.

Edit: Oh, thanks Sencer, I was writing while you have replied me. Yes, a plug-in, that seems.

Last edited by maniqui (2006-06-25 15:30:14)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#4 2006-06-25 17:12:01

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,393
Website GitHub Mastodon

Re: 404 not working when wrong title in /section/title URL mode

maniqui wrote:

BTW, I have found another thing: I have pointed the browser to an URL of an article that exists but that its currently status is hidden.
It returns an “empty” page. I mean, the page template is parsed but were the article should be showed, there is a blank space.

Same here. I think this requires a second thought. I’d rather expect to meet a 404 condition in that case.

Offline

Board footer

Powered by FluxBB