What’s wrong with the rewriting?

Yeah I don’t know much about codex. Referring to the webs and few example’s does not help as well.

What I want to is to rewrite the URL such as:

/friends/tony/ –> /wp-content/plugins/friends.php?name=tony

so people will see /friends/tony/ on their browser, not the one with query string.

I have referred to Jerome’s Keywords and Feed Director, but no luck for me.

Other webs;

http://codex.word...Reference/WP_Rewrite

http://wordpress..../support/topic/50182

http://wphooks.fl...erate_rewrite_rules/

http://codex.word...ite&redirect=no

http://codex.wordpress.org/User:DavidHouse/WP_Rewrite_API

http://wordpress..../support/topic/54915

function test_testRules() { global $wp_rewrite; mail("myemail","CALLED4","CALLED"); } //add_action('init','fd_init'); //add_filter('rewrite_rules_array', 'test_testRules'); //add_filter('rewrite_rules_array', 'test_testRules'); add_action('generate_rewrite_rules', 'test_testRules');

This code should me when any of the action or filter is invoked..but it never happen.

Posted March 19th, 2006 by mightyhitter under PHP, Wordpress

 

Leave a Reply