I have following scenario:
I need a custom permalink structure to pass
domain_name query variable.
I have tried following code:
add_rewrite_tag('%domain_name%', '([^&]+)'); add_rewrite_rule('^/([^/]*)/?','index.php?domain_name=$matches','top');
But not working
For better example Check this site:
http://currentlydown.com/facebook.com I am trying to do the similar