Customise Wordpress

Mar 9th, 2009 Wordpress 0 Comment

Stumble Customise Wordpress

Wordpress is a great tool, it’s used to blogs and sites but can also be greatly customised not just in terms of usability but also in terms of searchability, seo and design. The following advanced tips will help you to improve your blog.

Note: The PHP code below should be

Improving Your 404

There’s two ways, you can edit your 404.php page so that any mis-directed traffic is automatically redirected to your homepage, for example add this at the top of your 404.php page and enter your url instead:

< ? php
header ('Location: http://www.bestblogs.asia/sitemap );
 ? >

The other way of improving your 404 page is by listing your popular posts, related posts, tags or even display a sitemap.

Permalinks Structure

Change is your permalink structure, you’ll find this page under Settings -> Permalinks. The default permalink is ?p= , but I prefer to use either /post-name/ or /category/post-name/ this is displayed as:

/%postname%/ or /%category%/%postname%/

To get into Google News, your permalink should look like:

/%postname%-%post_id%

.htaccess Changes

Use .htaccess to tell google, and force everyone to use the www. version of your site example:

#Force www domain
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com [nc]
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
#End force www

Edit the Robots.txt File

By disallowing spiders to certain sections of your WP Blog, you are giving more link juice to other pages.

User-agent: *
Disallow: /category/
Disallow: /feed/
Disallow: /trackback/
Disallow: /cgi-bin

Turn off Post Revisions

Post version tracking mechanism has been introduced in WP. For example, every time you “Save” a post, a revision is written to the database. If you do not need this feature you can easily turn it off by adding one line to your wp-config.php file, found in the installation directory of your WordPress site:

define('WP_POST_REVISIONS', false);

If you have run a blog with revisions turned on for a while, chance is you will have a lot of revision posts in your database. if you wish to remove them for good, simply run this query (for example using the mentioned WP-DBManager) plugin.

DELETE FROM wp_posts WHERE post_type = "revision";

This will remove all “revision” posts from your database, making it smaller in the process.

Related posts

Leave a Reply to "Customise Wordpress"

Have an Avatar? - Register one now!
Liked the post? - Subscribe via RSS.