htaccess problem not being able to overwrite previous rules

so guys, what i need to do is:

whenever someone ask for this url:

Read More

dev.site.com/noticias/id/tittle-for-the-news

( dev.site.com/noticias/([0-9]+)/([A-Za-z0-9-]+)/ )

it needs to get this:

dev.site.com/noticias/?_escaped_fragment_noticias=id/tittle-for-the-news

so i go ahead and set this function (i’ve done some googlign for this but not quite sure if its ok)

function add_url_rewrite() {

    add_rewrite_rule('noticias/([0-9]+)/([A-Za-z0-9-]+)/', 'noticias/?_escaped_fragment_=noticias=/$1/$2', 'top');
}
add_action( 'init', 'add_url_rewrite' );

but ofcoruse, this didnt work at all and that’s why im here trying to find out.. how do i do an .htaccess rewrite rule for wordspress.

thanks in advance!

Related posts