I need to redirect a single WordPress URL that is formatted like this: www.bluewidgets.com/?p=123 to a clean URL on another domain. How can I do this via .htaccess? All of the tutorials I’ve seen say that I need to specify another part of the url, like index.php, before the query string, but my URL doesn’t have one – it’s just the domain and then the query string.
I need to redirect a single WordPress URL that is formatted like this: www.bluewidgets.com/?p=123
Share
Can’t you just add to the header.php, before anything else:
I’ve done something similar in the past. It may not be pretty, but it works – I’d be interested to hear from more experienced PHP-ers whether it’s a legitimate tactic.