Currently Browsing: WordPress

WordPress: “<< previous entries" link not working

I recently changed my site from a static homepage to point to the latest post. In doing so, clicking the previous page link at the bottom of the blog returned a page not found error.

Google searches presented various options including changing the number of posts displayed in settings etc, none of which worked.

As a static home page site, I use Filosofo’s Home-Page Control plugin. The problem was resolved by changing the home page setting in the plugin from WordPress default to Blog.

Why you should change your permalink structure from the WordPress default

Permalinks are the URLs that are used to navigate from page to page on your website. Visitors rely on these to return to your content either through bookmarks or the URLs that search engines capture when they index your pages.

A URL with a meaningful name makes it easier to locate your content as people search for key words and phrases and not page numbers. WordPress offers a variety of options for its permalink structure. These include page numbers (default), Day and Name, Month and Name, numeric, post name and custom.

I use post names on all my websites as this is both simple and functional; and most of my content and articles are enduring i.e. no used by date.

Here are some of the things to watch out for when changing your permalinks if you encounter broken links:

  • Does your web server supports mod_rewrite?
  • Is the mod_rewrite  feature enabled?
  • Has the web server automatically created a .htaccess file in your WordPress folder?
  • Is the .htaccess file in the same folder as your wp-config.php file?
  • Does the .htaccess file contain the following code after you change the permalink structure?
    • .htaccess
      # BEGIN WordPress
      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.php$ – [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
      </IfModule>
      # END WordPress