How to change the WordPress permalink structure to postname

I’ve been changing the permalink structure for WordPress sites to simply postname, and you can do the same! I’ll show you how to generate the redirects you need.

WordPress permalink structure

In the past, I’ve configured WordPress to use the permalink structure Day and Name, which formats the URLs for posts as /%year%/%monthnum%/%day%/%postname%/. Although I knew that a simple %postname% would produce shorter, more memorable URLs, I avoided that structure because it had been shown to result in slower performance.

WordPress 3.3 fixed that issue. The 3.3 release notes in the WordPress Codex say, “Use
the postname permalink structure without a performance penalty.” WPCandy also covered this improvement in the articles Recent commit to 3.3 eliminates performance issues with postname permalink structure and Everything we know about the newly released WordPress 3.3.

So, how do you safely change the permalink structure of an existing site to postname, without breaking all the external links to your posts? You’ll probably need to generate redirects to add to your .htaccess file. Renowned WordPress developer Joost de Valk has a generator in his article How to Change WordPress Permalinks. The tool gives you the redirect you need to add to the top of your .htaccess file.

Share

Free WordPress training videos: WP101 from WPtuts+

WPtuts+ has many high-quality WordPress training videos in their WPtuts+ WP101 tutorial series. These videos used to be available only through a subscription to WP101.com, but you can now view most of them for free at WPtuts+.

WP101 videos

These are just a few of the topics covered:

  • The Dashboard
  • Creating a New Post
  • Using Categories and Tags
  • Creating and Editing Pages
  • Add Photos and Images
  • Managing Comments
  • Adding Widgets
Share

WP Security Scan plugin checks WordPress permissions & database security

You can never be too security-conscious with WordPress, so let’s look an excellent security plugin: WP Security Scan. I found out about this plugin from the WordPress 3: Developing Secure Sites course on Lynda.com.

This plugin does several things, but I especially like the initial scan, permissions scanner, and database prefix changer.

Initial Scan

Provides a quick scan of your site and makes security recommendations.

WP Security Scan initial scan

Permissions scanner

Checks directory permissions to make sure they’re set properly.

WP Security Scan permissions

Database prefix changer

A common security-through-obscurity tip is to change the database prefix. I used this plugin to change the database prefix for several sites, and encountered no trouble. Still, make a backup first!

WP Security Scan database prefix

This plugin integrates with WebsiteDefender‘s online services, which I haven’t checked out. Luke Rumley of Rumley Design, a fellow member of WordPress Grand Rapids, told me that they provide downtime monitoring like Pingdom.

Share

Adding Google Custom Search to WordPress

I like to replace the default search functionality in WordPress with Google Custom Search. While recently redesigning a site using a child theme of the Twenty Eleven theme for WordPress, I found that Google had discontinued the IFrame option for Google Custom Search.

Google Custom Search logo

Fortunately, I found this post from iamtgc.com: Integrating a Google Custom Search Engine into your WordPress blog. The post clearly shows how to add Google Custom Search to WordPress without using a plugin. It shows how to

  • generate the code for your Google custom search engine
  • create a new page to contain the search results. Note: when you paste the code from Google into WordPress, make sure you remove any blank lines from the JavaScript, or the page may just render “Loading…”
  • modify your search form template (usually named searchform.php)
  • modify the CSS (usually named style.css) to style the search form
Share

Best WordPress podcasts, Fall 2011

These are my favorite audio podcasts about WordPress. I posted a list of the 9 best WordPress podcasts in March 2011, and decided it was time to update the list. Maybe some day I’ll write a review for each one, but for now, I just pasted the description from each podcast’s site or iTunes page.

I’ve listed them roughly in the order I like them. I prefer those that offer tips, recommendations, and tutorials over those that simply cover WordPress news. I’m always looking for more, so please add your favorites in the comments!

Your Website Engineer

Join us for an entertaining and informative look at creating a high quality website for your business or personal blog by using WordPress. If you already have a website, this podcast can help you update it to Web 2.0 standards. A website doesn’t have to be the hardest part of owning a small business. With this show, I will show you how you can take charge of keeping your website maintained and always up to date. This show focuses on WordPress and how it is the best solution for small businesses looking to create a website.

Your Website Engineer podcast art

daWPshow WordPress Podcast

A podcast for those who use WordPress. Note: hasn’t been updated since May 2011.

daWPshow art

WordPress Weekly

Hosted by Jeff Chandler. Your weekly source of news and discussions related to WordPress as well as any projects under the Automattic umbrella.

WordPress Weekly art

WordPress Plug-ins from A to Z

Your host John Overall covers a new WordPress plug-in each week on WordPress Plug-ins from A to Z. Working his way though the alphabet covering some pretty interesting plug-ins as well as some simple ones. With over 11k plug-ins available for word press it is a pretty good bet that we wont run out of plug-ins to cover.

WordPress Plug-ins from A to Z art

The WPCandy WordPress Podcast

A weekly overview of the most recent and important WordPress news.

The WPCandy WordPress Podcast art

WordPress in 10 Minutes..in 10 minutes

The companion podcast to Sams Teach Yourself WordPress in 10 Minutes by Chuck Tomasi and Kreg Steppe. Note: hasn’t been updated since April 2011.

WordPress in 10 Minutes..in 10 minutes art

WordCast Plugin Picks

The world is full of WordPress plugins, so join Dave Moyer and Kym Huynh as they cut through the noise and clutter to bring you the best plugins for your website or blog. Part of the WordCast network at wordcastnet.com. Note: hasn’t been updated since May 2011.

Plugin Picks from WordCast art

The WordPress Podcast

Features exclusive interviews with fellow WordPress developers, topics such as WordPress hosting and SEO, and news on the latest plugins and updates. The WordPress Podcast is hosted by Joost de Valk and Frederick Townes. Note: hasn’t been updated since Feb. 2011.

The WordPress Podcast art

WordCast Conversations

The WordCast team tackles hot blogging, social media and WordPress topics, with in-depth interviews with experts. Note: hasn’t been updated since June 2011.

WordCast Conversations art

Share

Review: WordPress All-in-One For Dummies by Lisa Sabin-Wilson, Cory Miller, Kevin Palmer, Andrea Rennick, Michael Torbert

WordPress All-in-One For DummiesWordPress All-in-One For Dummies by Lisa Sabin-Wilson, Cory Miller, Kevin Palmer, Andrea Rennick, Michael Torbert

My rating: 4 of 5 stars

This is the broadest, most comprehensive WordPress book I’ve read so far. It covers more than WordPress for Dummies (read my review), because it deals with everything from administration to design to development. I skimmed the first 4 books which dealt with the basics, and the later sections on plugin development and Multisite/Network. I liked the sections on SEO and themes.

The 8 mini-books included in this book are authored by several WordPress stars: Lisa Sabin-Wilson of E.Webscapes, Cory Miller of iThemes and WebDesign.com, Kevin Palmer of Convertiv, Andrea Rennick of WPMUTutorials.com, and Michael Torbert of Semper Fi Web Design and developer of the All in One SEO Pack plugin.

Security

Secure wp-config.php by adding the following code to the top of the .htaccess file:
<Files wp-config.php>
Order Allow,Deny
Deny from all
</Files>

Change the database table prefix.
Set permissions for wp-config.php to 640.
Move the wp-content directory outside the WordPress installation directory. Update the path in wp-config.php. See the WordPress Codex: Editing wp-config.php.
For more security tips, see the WordPress Codex: Hardening WordPress.

Moving to a new host

  1. Back up your current database.
  2. Back up your current wp-content directory.
  3. Create a new database with your new host.
  4. Import your database backup into this new database.
  5. Install WordPress with the new host.
  6. Edit wp-config.php to included the new database name, username, password, and host.
  7. Upload the wp-content directory to the new host.

Social media

Sociable is better than ShareThis.
Use Social Mention for free social media and sentiment tracking of your brand.

SEO

Use the permalink format /%postname%/, or, if your site has focused categories, /%category%/%postname%/.
Create breadcrumbs with the Yoast Breadcrumbs plugin.
Add pagination with the WP-PageNavi plugin.
Show only excerpts on archive pages. Prevent search engines from indexing archives other than the category archives. Use the All in One SEO Pack plugin and Robots Meta plugin.
In the All in One SEO Pack plugin, select No index for archives and tag archives.

Themes and theme frameworks

Premium themes: iThemes, StudioPress, WooThemes, Press75, Headway Themes
Free theme frameworks: Theme Hybrid, Carrington, Thematic
Premium theme frameworks: Genesis, iThemes Builder, Headway

Custom post types, taxonomies, and post formats

The Custom Post Type UI plugin lets you create custom post types from the admin area.
Custom post types are used for posts other than post or page.
Custom taxonomies are used for classifying posts, similar to categories and tags.
Post formats define the style of the post, such as audio, image, link, or video.

Miscellaneous tips

Use the W3 Total Cache plugin to minify HTML, CSS, and Javascript.
The Advanced Text Widget plugin lets you include PHP code in widgets.
Use subdomains, not subdirectories, for Multisite (Network).

View all my reviews

Share

IDrive WordPress plugin: free, automatic WordPress backup

I have a new WordPress backup plugin recommendation: IDrive for WordPress. I previously recommended the Backupify plugin, but my backups have been failing, and Backupify told me its plugin is no longer supported.

I’ve used IDrive for backing up PCs for family and clients, so I decided to try the IDrive for WordPress plugin. So far, I’m impressed! You get 5 GB of storage free, and you can back up multiple WordPress sites into the same IDrive account. The plugin performs an incremental backup of the WordPress files and a complete dump of the MySQL database.

For more info, see IDrive for WordPress in the WordPress Plugin Directory, or the plugin’s page on IDrive.com.

Install the plugin, then set your backup options.

IDrive WordPress backup settings

Use the View Logs tab to make sure your backups are working.

IDrive WordPress backup log

You can sign into your IDrive account (at IDrive.com) to view your backed up files. If you back up multiple sites, each has its own folder.

IDrive WordPress backup files

To delete files, you’ll need to install the Windows Restore Application on your PC.

Share

Review: WordPress Bible by Aaron Brazell

WordPress BibleWordPress Bible by Aaron Brazell

My rating: 4 of 5 stars

This book expertly teaches how to build WordPress plugins, widgets, and themes, and explains in-depth the Loop and template files and tags. My favorite chapters were 9 and 10, about themes and template files, and chapter 3, about SEO for WordPress.

This book is by far the largest, most technical WordPress book I’ve read so far. It’s the perfect desk reference for WordPress developers. Its 700+ pages contain explanations, PHP code snippets, and tables of hooks, tags, and parameters. The book is very current; it was published in 2011 and covers WordPress 3.1. Author Aaron Brazell is a WordPress core contributor, and technical editor Mark Jaquith is one of the WordPress core developers.

The book focuses almost exclusively on PHP, and barely discusses HTML, CSS, JavaScript. The author recommends reading HTML, XHTML, and CSS Bible by Wiley to learn HTML and CSS.

Plugin recommendations

Theme recommendations

Host recommendations

View all my reviews

Share

Your Website Engineer podcast about WordPress

Your Website Engineer podcast artI thought my post 9 best WordPress podcasts for WordPress tips, reviews, news included all the active WordPress podcasts, but Dustin R. Hartzler left a comment recommending his podcast, Your Website Engineer. I’ve listened to several of the recent episodes, and so far I’m impressed! There’ve been 31 episodes since it started in December 2010. Give it a listen!

Here’s a description of the podcast from iTunes:

Join us for an entertaining and informative look at creating a high quality website for your business or personal blog by using WordPress. If you already have a website, this podcast can help you update it to Web 2.0 standards. A website doesn’t have to be the hardest part of owning a small business. With this show, I will show you how you can take charge of keeping your website maintained and always up to date. This show focuses on WordPress and how it is the best solution for small businesses looking to create a website.

Share

Defensio Anti-Spam plugin: free alternative to Akismet

Defensio logo

The Defensio Anti-Spam plugin for WordPress is a free alternative to Akismet (Automattic’s popular anti-spam plugin). Akismet works great, but it’s only free for personal sites; for business sites, you need to pony up $5 per month.

I tried Bad Behavior and Growmap Anti Spambot Plugin (GASP), but they both let through 3-10 spam message per day for OptimWise.com. Defensio lets through 0-3 per week.

The Defensio plugin is produced by Websense, a big name in enterprise security. Defensio is free for personal use and for small businesses with up to 5 employees. Learn more on the Defensio for WordPress page.

Share