Flexible Content Management System


SEO for postnuke

Contributed by on Jan 31, 2008 - 12:24 AM

Customize title

You can customize the general title of your postnuke, by filling in the correspondant fields in the module "settings". The problem is that, you will have only one title for the whole website ... and that's ugly (and bad for SEO).

A solution was offered by Markwest, in order to personnalize this title, on every pages.the title tag plugin

This plugin allow you to format titles like this
<fieldset><legend>Classic titles</legend>
HTML for Module Developers - A Discussion :: pnCommunity :: Support at your fingertips

if you want to have shorter titles like this, you can use the other unofficial version in the comments.

<fieldset><legend>Improved titles</legend>
HTML for Module Developers

If you're using pnForum, it will give you title like this

<fieldset><legend>PnForum title</legend>
<!--[settitle title=$topic.topic_title|pnvarprepfordisplay|pnvarcensor]-->

Customize meta "descriptions" and "keywords"

You can customize the meta "descriptions" and "Keywords" of you CMS, by filling in the correspondant field in the "settings" module, but with this customisation, you will have only one "description" and "keywords" fields for all the site.

In order to improve this, there are two plugin on the community repository, one for fixing the descriptions and the other one for the keywords tags.

Notes : As the Search engine were spammed by overloaded keywords tags, for most of them , they don't consider this tags anymore.

If you're using pnForum, it will give you this :

<fieldset><legend>PnForum metas</legend>
<!--[setmetadesc description=$topic.posts[0].post_text|strip|truncate:600:" "]-->

Activate url rewriting

You can activate the url rewriting in Xanthia, go to the Xanthia module, then check the options "use short urls", and copy paste the .htaccess file from the "doc" folder to the root of you CMS.

/!\ Be careful, live search doesn't url with more than two dashes

Notes : an improved version of the current url rewriting is available in postnuke 0.8.

Duplicate content

Don't duplicate links in your portal, two differents links must not point to the same content. Indeed, some search engine don't like to see multiples versions of the same page on a website (that's called "duplicate content")

To avoid this, you can use a robots.txt at the root of the CMS
User-agent: *
Disallow: admin.php
Disallow: config/*
Disallow: header/*
Disallow: footer/*
Disallow: pntables/*
Disallow: /images/*
Disallow: /includes/*
Disallow: /adlogger/*
Disallow: /themes/*
Disallow: /pnTemp/*
Disallow: /docs/*
Disallow: /javascript/*
Disallow: *.php

An other tip, "/index.php", "/index.html" and "/" redirect to the same page so you can add this rule in you .htaccess
RewriteRule ^index\.html$ [NC,R=301]
RewriteRule ^index\.php$ [NC,R=301]

Text formating

In your articles or templates, try to have a structured layout with H1, H2, H3 tags.

Autolink and intern link

The module "autolink" is interesting, because he allows you to create a large amount of intern links with the same source anchor, this will help to increase your rank on the given word

404 error

When you've got an important portal with a large number of pages , it may be possible some of you ranked pages doesn't exist anymore. When search engine bots come to look for this "ghost" pages, you can redirect them to the home of your website, with an "Error 404" header.

ErrorDocument 404 /index.html

Take off unused metas tags

For most of them, search engine bots don't read some meta like "revist-after", so you can take them of your head tags. It will not help you, but you will have a cleaner header.

<meta name="revisit-after" content="1 days" />

This article is a translation from this "how to" released on Postnuke-France