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

Problem when i configure permalink

The basic rewrite rules for pretty permalinks in WordPress look like this: # 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 Note the RewriteRule. That part is missing in your file.

How do you put your own rules into .htaccess?

This is the default. WordPress will add markers before and after its rules and not touch anything else: # BEGIN WordPress # WP rules here … # END WordPress Just make sure to set your rules before the WordPress rules, because WordPress’ rewrite rules are rather greedy (they have to), so later rules will probably … Read more