ZENVERSE » SEOhttp://zenverse.net
Design and Web DevelopmentTue, 15 Jan 2013 15:12:59 +0000en-UShourly1http://wordpress.org/?v=3.5How to Add/Integrate Google +1 Plus One Button into WordPresshttp://zenverse.net/integrate-google-1-plus-one-button-into-wordpress/
http://zenverse.net/integrate-google-1-plus-one-button-into-wordpress/#commentsThu, 23 Jun 2011 12:13:11 +0000Zenhttp://zenverse.net/?p=2026Google recently introduced their own social button just like those we commonly see, such as Facebook Share, Tweet It, Digg It, etc. Just like Facebook and Twitter button that let you share content to your followers or friends, Google +1 button let people who love your content to recommend it on Google search. The pages that you plusone-d (+1′d) can then be useful to your friends and contacts in your Google Account. They can see what you recommended, thus their search results will be something like this:

This feature can be turned off though, if you don’t like this. You can go to Google Account Settings > Under “+1 on non-Google sites” > Click “Edit” > Select “Disable”.

Integrate Google +1 Button into WordPress Theme

First of all, Google has its own code generator for the button located at here. Now. decide the style and size then come back to here again.

Loading The Required Javascript

Open your theme’s header.php, paste this or similar codes from the generator, ONCE ONLY, into <head> tag:

Adding The Button To Single Post / Page

If you want your button to appear in single post or page, first open single.php or page.php, identify The Loop. More information about The Loop at here. Next, paste this button render codes or the codes generated by google, after

Google Plus One Button, Live

Useful Links

]]>http://zenverse.net/integrate-google-1-plus-one-button-into-wordpress/feed/1URL Canonicalization (Canonization) Using PHPhttp://zenverse.net/url-canonicalization-using-php/
http://zenverse.net/url-canonicalization-using-php/#commentsSun, 13 Feb 2011 15:45:46 +0000Zenhttp://zenverse.net/?p=1772When your website can be accessed via several URLs, such as http://www.example.com & http://example.com, you might want to decide a best URL and use only that URL whenever you link back to your site, because this helps your site in terms of SEO.

What is URL Canonicalization?

Q: What is a canonical url? Do you have to use such a weird word, anyway?
A: Sorry that it’s a strange word; that’s what we call it around Google. Canonicalization is the process of picking the best url when there are several choices, and it usually refers to home pages.

The Main Idea

Assume that a googlebot visited your website via http://example.com but you want your default URL to be http://www.example.com. First, what you need to do is, detect this situation, let the robots know which URL you want and set 301 (permanent) redirect to that URL.

Performing URL Canonicalization using PHP

One very important variable we will need in the codes is the $_SERVER which is a predefined variable. We will need $_SERVER['HTTP_HOST'] and $_SERVER['REQUEST_URI'] here.

$_SERVER['HTTP_HOST']
This variable returns the domain name of your website ONLY, without trailing slash and it includes www if your current address has it.

If your current page is:

http://example.com – it returns example.com

http://example.com/ – it returns example.com

http://www.example.com – it returns www.example.com

http://www.example.com/ – it returns www.example.com

http://example.com/wordpress/ – it returns example.com

http://example.com/faq.php – it returns example.com

http://example.com/?p=9 – it returns example.com

$_SERVER['REQUEST_URI']
This variable returns URI which was given in order to access the page, a slash is always included.

It simply check if the first 4 characters are “www.”, then it set a permanent redirection to the non-www version.

]]>http://zenverse.net/url-canonicalization-using-php/feed/05 Common xHTML Validation Errorshttp://zenverse.net/5-common-xhtml-validation-errors/
http://zenverse.net/5-common-xhtml-validation-errors/#commentsThu, 14 Jan 2010 02:37:44 +0000Zenhttp://zenverse.net/?p=1462validation service. Recently I have updated all my free wordpress themes to be 100% xhtml valid. After validating each of them, I found that there were some common errors...]]>You can validate your website using this validation service. If you are using Opera, validating a website is just one click away : Right Click -> Validate.

Recently I have updated all my free wordpress themes to be 100% xhtml valid. After validating each of them, I found that there were some common errors, which can be solved by:

1. Adding alternate text to <img> tags

This is also known for improving your site’s SEO. Whenever you use <img> tags you have to add an alternate text. If you do not have alernate text to add, at least leave it empty like this alt=""

5. Validating video/embed codes such as youtube video

]]>http://zenverse.net/5-common-xhtml-validation-errors/feed/6Embedding Youtube Videos – Tips and Passing xHTML Validationhttp://zenverse.net/embed-youtube-videos-tips-xhtml-validation/
http://zenverse.net/embed-youtube-videos-tips-xhtml-validation/#commentsFri, 04 Dec 2009 06:22:39 +0000Zenhttp://zenverse.net/?p=1376 was deprecated in favor of the <object></object> element.]]>If you use the default code given by youtube to embed a video, you will notice that it failed to pass xHTML validation. This is because <embed> was deprecated in favor of the <object></object> element.

Tips and Tricks When Embedding Youtube Video

There are some built-in parameters that you can add to change the behaviour/style of embedded video.

Disable Related Videos
I don’t like to see related videos when I mouseover the video container. You can add &amp;rel=0 to the two video urls in the code. Based on the xHTML validated codes above, now it would look like:

An example of SEO friendly URL can be seen in this page. Compare it with urls like http://mysite.com/?t=34 , you will find it easier to remember and the it also clearly tells you what this page is about. Furthermore, the words in the URL might match the search keywords, bringing more traffic from search engines.

Make SEO friendly URL yourself

I don’t have to worry about SEO friendly URL in WordPress since its already built-in. However, I need it for my premium wordpress themes website, which is not based on WordPress. So I started to look into this matter.

Using htaccess and mod rewrite, you can make SEO friendly yourself in 3 easy steps.

1. Creating .htaccess file

Open NotePad (yes, the windows notepad) > File > Save As > Change the “Save as Type” to “All Files” > enter “.htaccess” as the name and press Save. You’ve created a htacces file.

• Like regular expressions, the [a-zA-Z0-9] matches lower and uppercase of alphabets and numbers.
• The asterisk inside the brackets + is a quantifier that match 1 occurence to infinite occurences.
• Combining them, ([a-zA-Z0-9]+) matches alphanumerics of at least 1 character.
• The caret ^ means “start with”, meaning the URL starts with the word “topic”.
• The dollar sign $ means “end”, meaning the URL ends with a slash.
• The $1 is backreference, it carries the content of the first group of brackets.

In other words, when user enters http://mysite.com/topic/faqs/ , the page being called and run would be http://mysite.com/index.php?topic=faqs

Example 2
If you want to change URLs like http://mysite.com/index.php?product=productname&price=30 to http://mysite.com/products/productname/30/. Basically its similar to above.

• The [0-9] in matches numbers only.
• The plus sign is a quantifier that match 1 or more occurences.
• Combining them, ([0-9]+) means 1 or more numbers.
• Similarly, $1 will be the first brackets : product name and $2 would be the second brackets : price.

Example 3
If you want to change URLs like http://mysite.com/article.php?id=45 to http://mysite.com/article-45.html, here’s how:

Others references you might need

]]>http://zenverse.net/seo-friendly-urls-with-htaccess/feed/55SEO for PHPBB3 – Site Title, Meta Keywords and Meta Descriptionshttp://zenverse.net/seo-for-phpbb3-site-title-meta-keywords-and-meta-descriptions/
http://zenverse.net/seo-for-phpbb3-site-title-meta-keywords-and-meta-descriptions/#commentsThu, 12 Nov 2009 16:33:18 +0000Zenhttp://zenverse.net/?p=1275No offence, but the fact is phpBB has a lot of weaknesses, not seo-friendly being one of them. However, with some simple steps you can improve the SEO of your phpBB. Here in this guide, we will add some basic SEO features to your phpBB by using a better Site Title, adding Meta Keywords and Meta Descriptions. I am using phpBB 3.0.5 for this guide.

According to the codes above, no matter where you are, your site name would be shown first. This is recommended for your main forum index, but not for viewforum and viewtopic. For better SEO, your forum title or topic title should appear first. That can be achieved by the following codes.

Open your template’s overall_header.php, look for <title></title> tags (like above) and replace it with the following :

Replace the “YOUR DEFAULT META CONTENT” with the meta description of your site. It will be used on pages when its not viewforum or viewtopic.

MESSAGE_TRIMMED is undefined, yet.

As you can see the template tag {MESSAGE_TRIMMED} is undefined. {MESSAGE_TRIMMED} is a new template tag that should carry not more than 150 characters of the content of first post because most search engines use a maximum of 160 characters for the description.