In PHP, how to jump to different pages based on the URL
For example
When the user accesses
https://www/?a=*
automatically jumps to
https://www/?b=*
How should PHP code be written?
ps: The equal sign is followed by any number. According to different numbers, jump to different pages
I don’t understand PHP, but there is an idea.
Before the user accesses (or after accessing https://www/?a=*), first trigger a public event. This event can be written on the front end or at the end. terminal, pass a parameter to this event, and perform a second jump access based on the parameter;
For example, first visit https://www/?a=*, then jump to a blank page (it can also be made into a refresh current page ), when the page is initially loaded
Get the number
Judge based on the number
header
JumpThere are many methods:
php
header
js
location.href
Some php frameworks come with jump functions, such as tp, ci's
Redirect
function, etc.