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

Changing the URL slug causes redirecting to homepage, or showing 404 or missing lang_code issue

This is not a solution, but this works some of the times. Try changing each and every relevant settings there is. Since we changed the permalink structure to ‘custom permalink’ the issue has been gone. We were hesitant to change the permalink settings at first because that had caused all our global_colours to ‘invalid’. However, … Read more

Get Page URl when changing slug and permalink

Instead of hardcoding the slug, instead store the ID in an option and then use it to call get_permalink(). You can also avoid hardcoding the $baseUrl and rely on a nav menu or button block instead so that it automatically updates. For example, $page_id = …..; // maybe a `get_option` call or something else? Depends … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)