Lost WordPress website access after changing URL [closed]

If you have a cPanel and have an access of phpMyAdmin on your host, then find your DB, check the “siteurl” and “home” fields are correct in wp_options Table. Or Add these two lines to your wp-config.php, where “example.com” is the correct location of your site. define(‘WP_HOME’,’http://example.com’); define(‘WP_SITEURL’,’http://example.com’); Or If you have a cli access, … Read more

Accidentally changed the url

Re: the comments above: Read http://codex.wordpress.org/Changing_The_Site_URL It says: There are four easy methods to change the Site URL manually. Any of these methods will work and perform much the same function. And the Codex outlines each one. The first one is the easiest; add these lines to wp-config.php with FTP or your hosting control panel … Read more

append special url end of my website urls

its very likely that somewhere in your theme, perhaps in your navigation or footer, you are linking something like <a href=”https://wordpress.stackexchange.com/questions/254739/Contact-Us”> which will then link to the subdirectory. You need to find those issues and fix it with something like <a href=”https://wordpress.stackexchange.com/Contact-Us”> or <a href=”https://wordpress.stackexchange.com/questions/254739/<?php echo get_site_url(); ?>/Contact-Us”> Without seeing code, it’s hard to tell … Read more

Please give me the rewrite rules for my ugly urls

if you are trying to get http://www.myblog.com/currentpage/1 http://www.myblog.com/currentpage/2 then your function should be add_action(‘generate_rewrite_rules’, ‘currentpage_rewrite_rule_222’); function currentpage_rewrite_rule_222($wp_rewrite){ $newrules = array(); $new_rules[‘currentpage/(\d*)$’] = ‘index.php?currentpage=$matches[1]’; $wp_rewrite->rules = $new_rules + $wp_rewrite->rules; } and just keep your query_vars function the way it is. add_filter(‘query_vars’, ‘wpa3537_query_vars’); function wpa3537_query_vars($query_vars) { $query_vars[] = ‘currentpage’; return $query_vars; }

How to echo a dynamic url

There are two workarounds: If the first line you’re mentioning is inside a void function: You have to create a wrapper function and use ob_ functions to get the real link: <?php function echo_link($post, $landing_page) { global $myfy; echo $myfy->get_retrieve_cart_url( $post->ID, $landing_page ); } function get_link($post, $landing_page){ ob_start(); echo_link($post, $landing_page); return ob_get_clean(); } // And … Read more

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