Read below if you happen to get the 404 error when accessing pages.

How it looks: You have just setup the WordPress installation and the Superhero theme. You went to Admin - Settings - Permalinks and did not select the default option. Thus, whenever you try to access a page, you receive the 404 error message.


The reason: first of all, you must understand it is not the theme’s issue, but the WordPress installation or web server configuration. Here are some reasons:

  • Apache II is configured in such way that it disallows overrides by your .htaccess file

  • The Apache II mod_rewrite module is not loaded by the web server

  • The WordPress .htaccess file is not writeable by the server or even missing.


How to solve it: 

  • Check if the mod_rewrite is installed and enabled on your web server and whether it allows the .htaccess file to override the server directory configuration.

  • Check whether your WordPress .htaccess is present in your WordPress installation. If it is not, simply create a blank file called .htaccess and upload it to your WordPress installation folder.

  • Set permissions on your .htaccess file that allows your web server to write to the file – CHMOD 666.

  • Go back and set your permalinks option to the “default” option and save the change. Then set it to something other than the default and save the change.

  • If your .htaccess file is writeable by the web server, it will contain new directives that sets rewrite rules for your custom permalink option.

  • If it is not writeable, you will see a message below your permalinks screen that contains the rule set you need to add manually into your .htaccess file, save it, and upload it back to the WordPress installation folder.

  • Check to see if you can navigate from your front page menu links without error.

  • If the issue persists, contact your web host support team for further assistance.