How to set a specified address jump in index.php?
laoyao
laoyao 2023-07-29 13:28:42
0
0
211

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.

laoyao
laoyao

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!