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

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; }

Hide / rewrite download link

You can use the plugin “Download Monitor” I use it and works great. You could also set custom configuration in your wp-config.php file to use a different directory. Depends on whether or not you want to just hide wp-content as the directory or actually completely change it.

How to create User friendly URL in WordPress?

There is a simple solution for this. Add this code to your theme’s functions.php. After that you need to re-save your permalinks from Settings->Permalinks in WordPress dashboard. function remove_author_base() { /** * Remove Author base from Wp Links * Serkan Algur */ global $wp_rewrite; $wp_rewrite->author_base=””; } add_action(‘init’, ‘remove_author_base’, 1); I tested this code on my … Read more

Generated URLs don’t reflect accurate URLs.

Site Address (URL) Enter the address you want people to type in their browser to reach your WordPress site. This is the directory where WordPress’s main index.php file is installed. The Site address (URL) is identical to the WordPress address (URL) (above) unless you are giving WordPress its own directory. WordPress will trim a slash … Read more

How to change search url produced by ‘s GET method?

My question are these. What is %5B%5D ? How can I change the url like this http://localhost:5757/alpool/?alp-search=true&cat_s=358,399 %5B and %5D are percent-encoded/URL-encoded version of the [ (left square bracket) and ] (right square bracket) characters, respectively. See Percent-encoding reserved characters on Wikipedia. You can “change” it using JavaScript, and here’s an example of how you … Read more