Ask for advice~
A page address: http://www.abc.com/?id=33,
Because the server has changed the program, now the same article address has become http://blog.abc.com/?p=33, the address with ?id=33 above has expired, and access will automatically jump to the homepage of http://www.abc.com/index.php.
So I would like to ask how to automatically jump to the corresponding correct address when accessing this or this type of address:
such as http://www.abc.com/? id=33 will automatically jump to http://blog.abc.com/?p=33
For example, http://www.abc.com/?id=112 will automatically jump to http: //blog.abc.com/?p=112
I tried using redirection. I searched a lot online but most of them redirected domain names directly, so I would like to ask some experts, in this case How to write automatic jump code in http://www.abc.com/index.php?
Thank you very much.