add_rewrite_rule on default post type

This would be bad practice, since WordPress already has a functionality to do this built in. Rewriting the built in functionality is never a good idea. To achieve this the best way is to use Taxonomies. Lets say you create two categories: Foo Bar Now select the categories for the post in question and setup … Read more

Old site posts broken after domain update

It seems like you are having permalinks issue which is usually occur due to .htaccess file. Can you please go to the Settings -> Permalinks and press update. Make sure your .htaccess file is writeable, usually wordpress show warning on that page if file is not writeable. If its not writeable you will get code … Read more

How do I remove /wordpress/ from my permalinks?

Sounds like you might have unzipped the wordpress package directly into your web root. Move everything in the /wordpress/ folder to the / folder (web root) and you should be good. If you intend to have the installation run out of the /wordpress/ directory, then update your .htaccess file to look like this: # BEGIN … Read more

Two URLs of one post is available

In this case you want to set a canonical URL to tell search engines that the content is duplicated over more than one URL. The canonical URL is a <link> tag which appears in the <head> of your page, for example: <link rel=”canonical” href=”https://example.com/Tourism/astara/museum-customs-home-belgians” /> You want to use this same URL for each of … Read more

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