How to change permalinks to taxonomy and post type’s posts

Go to the permalinks setting in the wordpress settings page and change the permalink structure to this. https://mysite.com/%category%/%postname%/ And now add this code in your .htaccess file to achieve that permalink structure. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d