Page 1 of 1

Categories link

Posted: Fri Nov 04, 2005 4:21 am
by Josh
I noticed that the links to the categories do not work my IE for some reason; probably since the upgrade to 0.9 or after the installation of the freetags plugin. There is a HTTP 404 error message, when I use IE and click on
http://atlanticreview.org/categories/3- ... -Relations

I asked three friends, but they don't get any error messages when using IE to surf to these categories.

If I visit the categories on other S9Y blogs, I don't get error messages either, thus I believe that the problem isn't my IE.

On my computer the category links work fine in Firefox. The firefox add-on to check links, however, tells me that the links to the categories are not valid. And http://validator.w3.org/checklink?uri=h ... heck=Check
also tells me regarding all categories "The link is broken. Fix it NOW!"

Until now I have never changed the permalinks settings in the configuration menue.
Now, in order to solve the problem, I decided to add ".htm" in the Permalink Category URL structure. The result is that the links work fine in IE and the Firefox link checker add-on likes the links as well. Though now the http://atlanticreview.org/categories/3- ... ns/P2.html link does not take me to the next page, but to the frontpage in Firefox and to an error message in IE. How do I change the settings for the "next page" link? (Without the .htm in the Permalink Category URL structure this link worked fine.)

Thus I have removed the .htm from the Permalink Category URL structure for now.

I don't know what to make of all this.

Re: Categories link

Posted: Fri Nov 04, 2005 11:43 am
by garvinhicking
Hi Josh!

In fact I get a 404 page as well, but with content. So even Serendipity emits output because of the Errorhandling/rewrite, many user agents will think it's a 404 page without content.

Are you using mod_rewrite or apache Errorhandling? How does your .htaccess file look like? Changing the ".htm" extension is uneccesary right now, the problem lies somewhere else; most probably in your .htaccess file.

Also check the permissions of .htaccess and see if your PHP user can write to it.

Regards,
Garvin

Posted: Fri Nov 04, 2005 12:15 pm
by Josh
Thank you, Garvin, for this quick reply.

Yes, I use mod_rewrite. If I change that option, then everything looks totally out of order.

The .htaccess file looks like this:

Code: Select all


# BEGIN s9y
ErrorDocument 404 /index.php
DirectoryIndex /index.php

RewriteEngine On
RewriteBase /
RewriteRule ^(archives/([0-9]+)-[0-9a-z\.\_!;,\+\-]+\.html) index.php?/$1 [L,QSA]
RewriteRule ^(authors/([0-9]+)-[0-9a-z\.\_!;,\+\-]+) index.php?/$1 [L,QSA]
RewriteRule ^(feeds/categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-]+\.rss) index.php?/$1 [L,QSA]
RewriteRule ^({PAT_PERMALINK_FEEDAUTHORS}) index.php?/$1 [L,QSA]
RewriteRule ^(categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-]+) index.php?/$1 [L,QSA]
RewriteRule ^archives([/A-Za-z0-9]+)\.html index.php?url=/archives/$1.html [L,QSA]
RewriteRule ^([0-9]+)[_\-][0-9a-z_\-]*\.html index.php?url=$1-article.html [L,NC,QSA]
RewriteRule ^feeds/(.*) index.php?url=/feeds/$1 [L,QSA]
RewriteRule ^unsubscribe/(.*)/([0-9]+) index.php?url=/unsubscribe/$1/$2 [L,QSA]
RewriteRule ^approve/(.*)/(.*)/([0-9]+) index.php?url=approve/$1/$2/$3 [L,QSA]
RewriteRule ^delete/(.*)/(.*)/([0-9]+) index.php?url=delete/$1/$2/$3 [L,QSA]
RewriteRule ^(admin|entries)(/.+)? index.php?url=admin/ [L,QSA]
RewriteRule ^archive/? index.php?url=/archive [L,QSA]
RewriteRule ^(index|atom[0-9]*|rss|b2rss|b2rdf).(rss|rdf|rss2|xml) rss.php?file=$1&ext=$2
RewriteRule ^(plugin|plugin)/(.*) index.php?url=$1/$2 [L,QSA]
RewriteRule ^search/(.*) index.php?url=/search/$1 [L,QSA]
RewriteRule ^(serendipity\.css|serendipity_admin\.css) index.php?url=/$1 [L,QSA]
RewriteRule ^index\.(html?|php.+) index.php?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]

<Files *.tpl.php>
    deny from all
</Files>

<Files *.tpl>
    deny from all
</Files>

<Files *.sql>
    deny from all
</Files>

<Files *.inc.php>
    deny from all
</Files>

<Files *.db>
    deny from all
</Files>

# END s9y
Also check the permissions of .htaccess and see if your PHP user can write to it


Who's the PHP user? I only know "Besitzer" can read and write. "Gruppe" can read and execute. "Alle" can't do anything.

Posted: Fri Nov 04, 2005 12:59 pm
by garvinhicking
Hm, I think then that your PHP installation cannot properly send toe HTTP 200 header; I see your Apache server has quite a few of extras installed, maybe they cause trouble there.

I remember you once gave me FTP access? If you do that again I can check out what is going on exactly...

Regards,
Garvin