Currently Viewing Posts Tagged tag

Fix some Crawl errors of my blog

I found some errors in Google Search Console —  Crawl Error. More than 400 errors of Not-Found.

After checking the details of these errors, I am noticed that they are the dead links which were brought after I converted this blog from MovableType to WordPress.

Some links are changed and I forgot to implement the redirection.

OK. Now I add some rules in .htaccess file to make these dead link to redirect to the correct URLs.


Here is some examples.

Monthly archives:

Old url is

New url is

So I added following rule into .htaccess file in root.

# Redirect monthly archives
RewriteRule ^archives/([0-9\/]*)/ /$1/ [R=301,L]

Tag page:

Old tag page is,1&tag=beta&limit=20

New tag page is

I add following rule into .htaccess

RewriteCond %{QUERY_STRING} ^IncludeBlogs=([0-9,]*)&tag=(.*)&limit=20$
RewriteRule ^(.*)$ [L,R=301]

Another type of tag page:

Old tag page is

New tag page is

Add following into .htaccess file.

RewriteCond %{QUERY_STRING} ^tag=(.*)&blog_id=([0-9])$
RewriteRule ^(.*)$ [L,R=301]

How to Add Meta keywords description tags into Movabletype 5.04 Templates

When doing on page optimization of blog, you need to beautify the html code and try to make it easy for Search Engine indexing.
The basic concept is to add meta keywords and description tags in every web page.
Now I show you how to add it into MovableType 5.04 Templates
Sign in the backend of your MovableType blog.
click Design > Templates
Find Entry template under Archive Templates set.
click it to get into the editor mode.
Find following code in it.

<title><$mt:EntryTitle encode_html="1"$> - <$mt:BlogName encode_html="1"$></title>

Add the following code after it

<meta name="keywords" content="<MTEntryTags glue=", "><$MTTagName$></MTEntryTags>" /><br /> <meta name="description" content="<MTEntryExcerpt>" />

Rebuild the individual pages after above changes.

Continue reading “How to Add Meta keywords description tags into Movabletype 5.04 Templates”

SEO hacking for Joomla 1.5.2

Joomla! is a wonderful open source CMS. But the performance of content on Search Engine Results is not good enough.
Some SEO (Search Engine Optimize) hacking should be taken to make it better on SERP.
The first one is H1 tag.
Joomla does not take H1 on it template. So the Search Engine can not find the important part of the page.
To add H1 on the page title, article title, you need to do following html hack.
Use whatever html editing tools you like, I use Dreamweaver now.
The template files are sitting here.
\website root\components\com-content\views\frontpage\tmpl\default_item.php
\website root\components\com-content\views\article\tmpl\default.php
\website root\components\com-content\views\category\tmpl\default.php
\website root\components\com-content\views\section\tmpl\default.php
Find “contentheading”
Then add <h1> </h1> around the heading tag.
Save them and upload them to site.
When you browse the page after H1 hacking, the title will looks bigger than before.
You can also use css to add H1 style for them.

  • Archives