Remove trailing /feed from permalinks that use a .html suffix

You can achieve this by adding the code to .htaccess file of your apache server. RewriteEngine On RewriteCond %{REQUEST_URI} ^/([0-9]{4})/([0-9]{2})/([^/]+)\.html/feed/?$ [NC] RewriteRule ^ /%1/%2/%3.html [R=301,L] The given code will helps you in set up a redirect so that any request to a post URL with /feed appended will be redirected to the original post URL … Read more

WordPress homepage shows default theme after migration – logged-out users see different content

The Theme setting issue after migration. Here are a few steps you can follow: This issue is WordPress side if migrated WordPress theme and settings are removed or reset. Homepage Settings: Go to Settings → Reading in the WordPress dashboard and ensure that your homepage is set to display a specific page or the latest … Read more

How to correctly edit permalink structures for both default and custom posts/taxonomies?

With @Caleb‘s help we’ve sorted this. The main problem was that the rewrite parameter on the custom taxonomies was not set to false. Doing this removed /articles/ from the permalinks to these archives. We changed this: $rewrite = isset( $taxonomy[‘rewrite’] ) ? $taxonomy[‘rewrite’] : array( ‘slug’ => $taxonomy[‘slug’] ); $hierarchical = isset( $taxonomy[‘hierarchical’] ) ? … Read more

tech