Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-12-14 07:57:50

ax
Plugin Author
From: Germany
Registered: 2009-08-19
Posts: 165

Category links

Category links can be written in two different ways:

http://textgarden.org/layouts/?c=photoblog

or:

http://textgarden.org/layouts?c=photoblog

Both work, and both can be found, but which is the correct semantics? And should’t Textpattern allow only one of both, whichever results in better Google indexing?

Offline

#2 2012-12-14 18:27:11

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: Category links

Perhaps the non slash version is SEO friendly, but the real problem is to have both versions with the same content.

You can force via .htaccess to redirect all pages ending with slash to a non-slash version, adding this line to your .htaccess file (you will find it on your hosting root):

RewriteRule ^(.+[^/])/$ http://www.yourdomain.com/$1 [R=301,L]

(Don’t ask me what means this line, I can only tell you I found it with Google, tried it and it worked ok for my sites)

Last edited by milosevic (2012-12-14 18:30:27)


<txp:rocks/>

Offline

#3 2012-12-14 21:01:24

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Category links

What about the 3rd way: http://textgarden.org/layouts/index.php?c=photoblog

[OT] And the same for / (section=“default”) shows that Textgarden has a missing generic article list output :)

Tag error: -> Textpattern Notice: Page template default does not contain a txp:article tag while parsing form “None” on page “default”


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

Board footer

Powered by FluxBB