Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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ón de Textpattern: 4.0.3 (r1188)
last_update: 2006-02-12 21:32:59/2005-12-26 17:49:56
Document root: /home/exaudi/public_html
$path_to_site: /home/exaudi/public_html
Path a Textpattern: /home/exaudi/public_html/textpattern
Modo de enlace permanente: section_title
Directorio temporal: /home/exaudi/public_html/textpattern/tmp
Dominio web: www.exaudi.com.ar
Versión de PHP: 4.3.11
server_time: 2006-06-25 12:10:01
MySQL: 4.1.19-standard
Local: es_ES.UTF-8
Servidor:
php_sapi_mode: cgi
os_version: Linux 2.6.9-22.ELsmp
Comprobación previa:
------------------------
El modo de URL limpia sólo para Apache
------------------------
contenidos del archivo .htaccess:
------------------------
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^exaudi\.com.ar$ [NC] RewriteRule ^(.*)$ http://www.exaudi.com.ar/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) - [PT,L] RewriteRule ^(.*) index.php </IfModule>#php_value register_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.
Offline
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
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)
Offline
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