How to achieve my custom post url structure?

I have created the custom URL using the function: add_rewrite_rule($regex, $redirect, $after). add_rewrite_rule( ‘^my-page/(.+)/?$’, ‘index.php?pagename=my-page&url=$matches[1]’, ‘top’ ); You can write your own custom rewrite rule and redirect to appropriate page: https://codex.wordpress.org/Rewrite_API/add_rewrite_rule

Unable to load WordPress local site after changing WordPress Address (URL) and Site Address (URL)

I was able to add WordPress Address (URL) and Site Address (URL) manually and access the local site again. What I did was add following code segments to following files. wp-config.php define(‘WP_HOME’,’http://www.local.abc.com’); define(‘WP_SITEURL’,’http://www.local.abc.com’); Functions.php I have added following code just after opening of update_option(‘siteurl’, ‘http://www.local.abc.com’ ); update_option(‘home’, ‘http://www.local.abc.com’ ); After that I have refresh site … Read more

How to move 1 WP site from a mult-site environment to a different multi-site area

If you know how WordPress is structured internally it should not be too hard. Here are the steps: For your site to migrate create a new site in the WordPress multisite environment (the information in the following tables must fit the new environment) wp_blogs (especially this) wp_blogs_versions (probably irrelevant) wp_registration_log (probably irrelevant) wp_signups (probably irrelevant) … Read more

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