Hack: Create a Simple 404 Log

When someone links to your site with the wrong URL, or, worse, you link to your own site with the wrong URL, it would be nice to know. You could check your server’s logs for 404 errors to see what bad URLs people are using. But I find it easier to create a simple 404 log file that I can access without much hassle. Then I check it every once in a while to see if I need to add a redirect to the correct page so I don’t miss some traffic.

Continue reading “Hack: Create a Simple 404 Log”

New Course: WordPress SEO Hacks

WordPress SEO Hacks Course

You don’t need some giant third-party plugin to implement SEO techniqueson your WordPress site. You can write your owncustomizable functions to include with your child theme or custom plugin.

But taking advantage of some basic WordPress actionsand filters, you can modify things like your titleand H1 tagsmeta datatags and other header code. You can set some or all of your links to nofollowand add related linksto your posts automatically. You can also include sitemaps.

If you are a developer, then creating your own simple SEO plugin can be an improvement over including a massive third-party plugin that will overwhelm and confuse your clients. If you maintain your own site, a custom plugin can be more streamlined and give you greater control over how you implement SEO.

This course includes all of the code discussed in the lessons. You can take the code and use it on your site, customize it, and distribute it to clients if you wish.

Hack: Create a Simple Non-WordPress Page

I came across this issue while trying to build a sitemap script inside of a WordPress plugin. In the past, I’ve just created a stand-alone PHP page that accesses WordPress and displays the sitemap. But I wanted to keep this code inside the plugin code. The problem is, you typically use plugin code to create contain insider a WordPress frame. But I just wanted plain text here, not the header and footer and all of that.

Continue reading “Hack: Create a Simple Non-WordPress Page”