Top

Best Wordpress Plugins: Chunk URLs

June 9, 2008 by Tony · 4 Comments 

Ever experienced someone posting a huge URL on your comment section? Those long strings are not only ugly, but they might also break the design of your website on certain browsers.

The best solution for this problem is a Wordpress plugin called WP-Chunk. It will basically transform a long URL like this:

http://www.domain.com/test/subfolder/?=123/article=?id8A133F52D0FD71AB86256C

into a smaller string like this:

http://www.domain.com/test/...56C

[del.icio.us] [Digg] [Facebook] [Google] [MySpace] [Newsvine] [Reddit] [Slashdot] [StumbleUpon] [Technorati] [Windows Live] [Yahoo!] [Email]

Best Wordpress Plugins: Clean Archives

June 9, 2008 by Tony · 1 Comment 

Blogs that focus on timeless content should archive the posts by categories. Calendars and monthly archives are not optimal since the reader is not able filter the posts by the topics of his interest.

That being said sometimes a comprehensive archive where all the posts are listed, month by month, can be useful. Maybe the reader is looking for something that was written two weeks ago, or maybe he wants to grasp all the older posts from your blog.

The best solution for this problem is a Wordpress plugin called Clean Archives. You just need to upload the plugin, activate it and drop a line of code on the page that you want the archives to be displayed.

[del.icio.us] [Digg] [Facebook] [Google] [MySpace] [Newsvine] [Reddit] [Slashdot] [StumbleUpon] [Technorati] [Windows Live] [Yahoo!] [Email]

Best Wordpress Plugins: Enforce www. Preference

June 9, 2008 by Tony · Leave a Comment 

WWW or no-WWW?

Whenever you create a website or a blog it usually can be accessed either through “http://www.domain.com” or “http://domain.com”. While this feature might appear useful at a first sight (since people can type whatever version they prefer) over the long run it will harm your search engine ranking.

The problem arises because Google and other search engines view the two versions as two distinct sites, even if they have the exact same content (technically, in fact, the “www” denotes a subdomain that could point to different content).

Search engine ranking is based, among other things, on the number of incoming links to your site. If you keep the two versions available some people will link to “http://www.domain.com” while other people will link to the “http://domain.com”, basically splitting your backlink count.

wwwdigg

Having two different versions might damage you in popular lists and social bookmarking sites as well. The picture on the right was extracted from Populicious, a site that lists the most popular sites on Delicious. If you take a look you will notice that Digg is listed both at the 7th and 10th position. This happens because the list treats “http://www.digg.com” and “http://digg.com” as two different sites. Shoud only one version be available the combined number would place Digg on the first position of the list.

How do you solve the problem for your blog? The easiest way is to set up a “301 Permanent Redirect” from the “no-www” version to the one with “www”, or vice-versa. Once the redirect is in place every time a visitor types http://domain.com he will automatically be redirected to the “www” version.

By the way, if you are wondering whether you should go with or without “www”, it does not matter. The important thing is that you pick one and stick with it.

How to setup a 301 Redirect

The “301 Permanent Redirect” is the most efficient and search engine friendly method for redirecting websites. You can use it in several situations, including:

  • to redirect an old website to a new address
  • to setup several domains pointing to one website
  • to enforce only one version of your website (www. or no-www)
  • to harmonize a URL structure change

There are several ways to setup a 301 Redirect, below I will cover the most used ones:

PHP Single Page Redirect

In order to redirect a static page to a new address simply enter the code below inside the index.php file.

<?php
header(”HTTP/1.1 301 Moved Permanently”);
header(”Location: http://www.newdomain.com/page.html”);
exit();
?>

PHP Canonical Redirect

The Canonical 301 Redirect will add (or remove) the www. prefixes to all the pages inside your domain. The code below redirects the visitors of the http://domain.com version to http://www.domain.com.

<?php
if (substr($_SERVER['HTTP_HOST'],0,3) != ‘www’) {
header(’HTTP/1.1 301 Moved Permanently’);
header(’Location: http://www.’.$_SERVER['HTTP_HOST']
.$_SERVER['REQUEST_URI']);
}
?>

Apache .htaccess Singe Page Redirect

In order to use this method you will need to create a file named .htaccess (not supported by Windows-based hosting) and place it on the root directory of your website, then just add the code below to the file.

Redirect 301 /old/oldpage.htm /new/http://www.domain.com/newpage.htm

Apache .htaccess Canonical Redirect

Follow the same steps as before but insert the code below instead (it will redirect all the visitors accessing http://domain.com to http://www.domain.com)

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

ASP Single Page Redirect

This redirect method is used with the Active Server Pages platform.

<%
Response.Status=”301 Moved Permanently”
Response.AddHeader=’Location’,'http://www.new-url.com/’
%>

ASP Canonical Redirect

The Canonical Redirect with ASP must be located in a script that is executed in every page on the server before the page content starts.

<%
If InStr(Request.ServerVariables(”SERVER_NAME”),”www”) = 0 Then
Response.Status=”301 Moved Permanently”
Response.AddHeader “Location”,”http://www.”
& Request.ServerVariables(”HTTP_HOST”)
& Request.ServerVariables(”SCRIPT_NAME”)
End if
%>

Best Wordpress Plugins: Enforce www. Preference

It it always a good idea to decide if you want to make your website accessible through http://www.domain.com or http://domain.com, and stick with it. Having both of those versions working might split your backlink count and cause problems with search engine indexation (you can read more about it on the article WWW or no-WWW?.

The best way to solve this problem is to set a 301 redirect. Sometimes, however, you might find it difficult to get the PHP code working or your server might not support the .htaccess redirect. In that case you can turn to a Wordpress plugin called “Enforce www. Preference”.

Once you upload and activate the plugin it will enforce the address that you have on the Wordpress control panel (under the General tab on Options). If on the control panel you have http://www.domain.com, for instance, the plugin will add a www. every time a visitor tries to access the site through http://domain.com. Another advantage of this plugin is that it removes the index.php from the end of URIs.

[del.icio.us] [Digg] [Facebook] [Google] [MySpace] [Newsvine] [Reddit] [Slashdot] [StumbleUpon] [Technorati] [Windows Live] [Yahoo!] [Email]

Best Wordpress Plugins: Feedburner Feed Replacement

June 9, 2008 by Tony · Leave a Comment 

While Feedburner statistics are pretty accurate some readers might end up not using the Feedburner feed. If you start using Feedburner when your blog already has some subscribers, for instance, they will keep using the old feed and thus will not be counted on your statistics.

Alternatively even if you have the Feedburner feed on your links some people or RSS readers might subscribe to secondary feeds like the RSS 2.0 or Atom feeds provided by Wordpress directly. In order to redirect all feed requests to Feedburner you can use a plugin called Feedburner Feed Replacement.

The plugin will not increase the number of RSS subscribers, but it will forward all the subscribers to Feedburner, making sure that they appear on the feed count and giving you a more clear picture of that number.

[del.icio.us] [Digg] [Facebook] [Google] [MySpace] [Newsvine] [Reddit] [Slashdot] [StumbleUpon] [Technorati] [Windows Live] [Yahoo!] [Email]

Best Wordpress Plugins: Custom Query String

June 9, 2008 by Tony · Leave a Comment 

Wordpress allows the user to set the number of posts that are to be displayed on every page. The problem with that feature on the Control Panel is that it affects all the types of pages around the blog. If you set this number to 5 you will have 5 posts on the Homepage, on the categories, on search results and so on.

As you can notice from my sidebar, the only way for the readers to navigate around the blog is through the categories. Having only 5 posts displayed on each category page (which is the number I use for the Homepage) is not efficient since it would force readers to browse across several pages before being able to see all the posts contained there.

customquerystring1

 

 

 

 

 

 

The solution for this problem is the Custom Querry String plugin (download link) . After installing it you will be able to set the number of posts (custom queries) for every single page on your website. Here are some of the pages that you will be able to customize:

  • author
  • archive
  • category
  • year
  • month
  • day
  • search
  • feed
  • home
[del.icio.us] [Digg] [Facebook] [Google] [MySpace] [Newsvine] [Reddit] [Slashdot] [StumbleUpon] [Technorati] [Windows Live] [Yahoo!] [Email]

Next Page »

Bottom