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

WordPress Post url encoding problem

The only way I know to change the URL in the browser’s address bar is to provide the actual URL in the HREF link that you want to see displayed. If there were a way to change the URL in the browser’s address bar, then that would open up many cans of worms for hackers … 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

Help with url rewrite

The PHP code is not enough, you need to edit your .htaccess file correspondingly. (You can do this with $wp_rewrite->mod_rewrite_rules(); somehow, or edit it manually.) However, be aware that URL rewriting is complicated stuff – are you sure you need it? If you are using pretty permalinks for posts/pages, chances are this will bork it … Read more

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