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.

301_htaccess_redirect

Here is some examples.

Monthly archives:

Old url is https://www.yinfor.com/archives/2012/09/

New url is https://www.yinfor.com/2012/09/

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 https://www.yinfor.com/mtcgi/mt-search.cgi?IncludeBlugs=4,1&tag=beta&limit=20

New tag page is https://www.yinfor.com/tag/beta/

I add following rule into .htaccess

RewriteCond %{QUERY_STRING} ^IncludeBlogs=([0-9,]*)&tag=(.*)&limit=20$
RewriteRule ^(.*)$ https://www.yinfor.com/tag/%2? [L,R=301]

Another type of tag page:

Old tag page is https://www.yinfor.com/mtcgi/mt-search.cgi?tag=Gogle&blog_id=5

New tag page is https://www.yinfor.com/tag/Google/

Add following into .htaccess file.

RewriteCond %{QUERY_STRING} ^tag=(.*)&blog_id=([0-9])$
RewriteRule ^(.*)$ https://www.yinfor.com/tag/%1? [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