I am trying to redirect this URL
example.com/wp-admin/admin-ajax.php?action=flare_get_counts&url=http%3A%2F%2Fexample.com%2Funix-tutorial-402-356-%2F&post_id=34&_wpnonce=8c7fc14726
to
example.com/unix-tutorial/
and for this i wrote this redirect rule
RedirectMatch 301 ^/wp-admin/admin-ajax.php?action=flare_get_counts$ http://example.com/$3
But this rule is not working. What is the correct way to redirect this URL?
admin-ajax.php
, write<?php if($_GET['action'] == "flare_get_counts") die(header("Location:/unix-tutorial")); ?>
. Much easier. – Niet the Dark Absol Nov 28 '14 at 12:25admin-ajax.php
may be overwritten. It should be done with regexp in.htaccess
– vaso123 Nov 28 '14 at 12:33