WordPress security is an important consideration, but often site owners don’t think about it until it is too late. Like most things, the Pareto principle applies: If you can do a few simple things (20%), you can prevent most security issues (80%). In addition to prevention, you can also take a few simple steps that will… Read More
Blog
Add Helper Classes to WordPress Navigation Menus
WordPress automatically outputs a lot of helpful CSS class names for menus. If you use the wp_nav_menu()
function to display your menus, as all good themes should do, you don’t have to settle for just the default class names.
Prevent Directory Browsing with .htaccess
Directory browsing allows visitors to your site to see and browse through the contents of folders on your web site, which can be a security issue.
Browser Caching of 301 Redirects
Many people don’t realize that browsers cache 301 redirects. A 301 redirect is a permanent redirect from one URL to another. It only makes sense that a browser should cache a 301 redirect, after all, it is permanent.
Web Redirects and the Law of Specificity
A common mistake when setting up multiple redirects for a website is failing to put them in the correct order. Typically, the person setting them up realizes that order is important; but it isn’t always clear how the redirects should be ordered.
WWW Redirects with .htaccess
Determining whether to use www in your canonical URLs is an important decision and should be reinforced by redirects to prevent duplicate content from an SEO perspective. Definition of a WWW Redirect A www redirect is a rule on your web server that forwards all traffic from the non-www version of your domain to the… Read More
Simple Redirects with .htaccess
Anytime you migrate a web site, or even just relocate a single page to a new URL, redirects ensure that your users don’t get lost in the shuffle. Search engines also use redirects to aid in properly indexing your site’s content.
Hide WordPress Plugin Deactivation Links
You can prevent WordPress users from being able to deactivate plugins by hiding the ‘Deactivation’ links.
WordPress Must Use Plugins
WordPress must use plugins are plugins that are always loaded and cannot be deactivated within the WordPress admin.
Exclude a Plugin or Theme from WordPress Updates
Anytime you’ve written a custom plugin that isn’t released on WordPress.org or modified a theme, it is best to disable updates for that specific theme or plugin.