Why is my mod_rewrite not working?

First, your additional line comes too late. The rule before catches everything you want to match. Second, it doesn’t what you want. Your … RewriteRule /([0-9]+/?)$ /about/latest-news/$1 [NC,L] … matches requests like example.com//0000000000000000000/ or example.com/about/latest-news/2010/ (infinite loop!). The first argument for RewriteRule omits the starting /. To match year archives you need rather: RewriteRule ^(\d\d\d\d)/?$ … Read more

Help with static front page blog at /blog

There’s a codex on this issue here: http://codex.wordpress.org/Creating_a_Static_Front_Page I haven’t been provided all the details of your site from your post. As in what your original site root is from when you installed it. So i’m making an assumption that this is a new install.

Pass a comment id through url and append the comment post’s slug in the url

Unless you declare $wp_rewrite as a global in your test function, you’ll be trying to access the local variable $wp_rewrite. This, of course, won’t work. Add the line global $wp_rewrite;: <?php add_action(‘init’, ‘test’); function test() { global $wp_rewrite; $reply_struct=”/reply/%reply_id%”; $wp_rewrite->add_rewrite_tag(‘%reply_id%’, ‘([^/]+)’, ‘reply_id=$matches[1]’); $wp_rewrite->add_permastruct(‘reply_id’, $reply_struct, false); }

custom template rewrite

What you will want to use is get_query_var( ‘paged’ ). This will get the default pagination value, this should be set by default, so you should just be able to plug and play. Because there are no URL parameters due to rewriting, $_GET[] will be completely empty (at least on the example URLs).