Jul 25 2012

htaccess to Redirect WordPress Blog To Another Domain

If you have an existing WordPress blog that you’ve used for years and have built up some Google juice but now are required to relocate to a different domain, you way want to redirect all the inbound links for the old domain to your new domain. If you still have access to the old existing domain, you can easily redirect all the inbound links to the new domain using the following .htaccess script.

RewriteEngine On

RewriteCond %{HTTP_HOST} ^.*old-domain\.com$ [NC]
RewriteRule ^(.*)$ http://new-domain.com/$1 [R=301,L]

Replace old-domain and new-domain with the correct domain names. If you WordPress blog was located in old-domain.com/wordpress then drop this in the wordpress directory that contains your WordPress installation. Of course, this only works for as long as you have access to the old-domain. Also, be sure to use the same permalink settings in the new WordPress insulation as in the previous so that the redirection maps the blogs posts correctly.


Jul 23 2012

Essential WordPress Plugins

A lot has changed since I last listed my top WordPress plugins. Over the years I’ve been blogging and helping others set up their blogs, I’ve settled on the few must have WordPress plugins that are essential for any new blog.

Jetpack by WordPress
The company behind WordPress, Automattic, have compiled a collection of useful tools that is realized as the Jatpack by WordPress plugin. It’s really a plugin suite. Jetpack includes WordPress statistics right in your dashboard, social sharing widgets, WP.me short/tiny links, and other useful tools. In addition to all these features, Automattic is constantly added more add-ons and tools for this plugin.

Google Analytics
Even though it’s not been updated in a while, I still use Google Analytics so that I can track my sites’ visitors on Google Analytics. Even though the Jetpack by WordPress offers analytics, I’ve find Google Analytics to be more detailed in how it tracks visitors.

Google Sitemap Generator
Any plugin that helps search engines crawl your blog belongs in your toolbox. The Google Sitemap Generator does just that. This plugin creates a search engine friendly site map pointing out the most recent content on your site.

Yet Another Related Posts Plugin
I’ve been using Yet Another Related Posts Plugin for years. I can’t even begin to describe how this plugin works, simple put it magically detects similar blog posts on your site and creates additional links to them in the footer section of your post. This is a great plugin that helps your readers discover other similar posts on your site.

WPtouch
Now that more and more of your visitors are coming to your site using their mobile devices, such as the iPhone or Android phones, you may want to use a plugin like WPtouch. WPtouch creates a mobile device friendly version of your site.


Feb 7 2007

Top 11th WordPress Plugin WP-Cache

Recently, I wrote a Top 10 WordPress Plugins list. I should have made it Top 11. The additional plugin recommendation goes to WP-Cache. As you can gather from the name, WP-Cache will backup each WordPress HTML page in the file system so that the HTTP server responds faster for each page view. Basically the server/database do less work and can serve more visitors. WP-Cache is configurable via an options manager that allows you to dictate which pages to ignore and for how long to cache. This plugin is definitely helpful for the enterprise blogger.

Technorati Tags: , , , , , , , ,


Jan 16 2007

Top 10 WordPress Plugins

1. Akismet by Automattic is probably the best WP plugin out there. Akismet is a comment and trackback spam filter for your WP powered blog. It is a true mathematical equation that your blogs page rank is exponentially proportional to the number of viagra and penis enlargement spam comments you will receive. Akismet blocks them all. One thing to note about Akismet is that it sometimes flags honest comments as spam, so make sure to manage Akismet spam frequently. To use Akismet you will need a free WordPress API key.

2. If you are using Google Analytics to track your blog’s performance I recommend the Google Analytics plugin by Boakes. It is simple to install and configure, just have your Google Analytics User Account handy.
Continue reading


Jan 7 2007

AJAX Header Rotator

The Joomla! installation comes with a neat module called Random Image. The Random Image module accepts an image directory path, and image type and will randomly and dynamically displays one of the images found in the image directory path for every visit.

But if you want to dynamically display images on you Joomla! site, I recommend you take a look at the AJAX Header Rotator module made available by JoomlaWorks. AJAX Header Rotator also requires a image directory path but instead of displaying a single random image, this module will load all the images and display one at a time. The AJAX Header Rotator rotates through images randomly or sequentially. Behind the scenes, AJAX Header Rotator uses jQuery to rotate through the image set.

A note of warning, I had to hack the AJAX Header Rotator module because I felt it lacked a few key parameters. For one, AJAX Header Rotator loads all the images in the image folder and I had felt there should be max number of files that it loads and rotates through on each user visit. I also added a parameter to enter the image alt text. And finally, the module code always displayed the same first image so I had to shuffle the images array to display a distinct image as the initial image.

Technorati Tags: , , , , , , , , ,


Dec 8 2006

Joomla! Sections and Categories

Joomla! has content buckets called sections and categories. A section can contain one or more categories. Before any new content or article can be published you need to specify both the section and category for it. Just as an example, if I would maintain a Joomla! powered programming site I would define a section named programming with the following categories java, ruby, python, fun, etc.

It is incredibly easy to create a section via the Section Manager. After you have added a section you need to create a category for it. Both sections and categories can have a description and image icon associated with them.

New Content Editor

In the New Content item editor you can assign the section and category to the article to be pubished. In most Joomla! templates the article’s section and category are used to create a breadcrumb trail. Well, this only works when you add the section to the main menu! If you don’t add the section to the main menu the breadcrumb trail will default to Home | Blog | Article Title.

To add your newly created section to the main menu, drill down to the main menu (mainmenu) menu items via the Menu Manager from the Control Panel. Create a new Menu Item for mainmenu. In the New Menu Item wizard select the List – Content Section radio button and click the Next arrow. Name your menu item and select the newly created section for the menu item. Click save and you’re done. At this point your breadcrumbs will correctly display your newly created section and category.

Technorati Tags: , , , , , , ,