Issue after changing permalink structure [duplicate]

You can use this query to generate the RewriteRules that you will need. Once generated the would go into your .htaccess file and need to be prepended with: RewriteEngine On RewriteBase / The following SQL output should setup rewrite rules for /postname/ to /category/postname/ based on what is in your database now. The trailing forward … Read more

404 error on second page load for child-pages

I never found the real reason for this issue. However this “bugfix” did solve the issue for me: add_action( ‘template_redirect’, ‘handle_strange_bug’, 10 ); // “Fixes” the strange bug… function handle_strange_bug() { global $post; $post_id = 123; // This is the post that makes problems. /* ===== Start of the bugfix. * * If the $post->ID … Read more