php - redirect typed-in url to new url BUT using some of typed-in data -
What I want to achieve is the following:
I want people to type in this way :
Although this URL is not actually in existence, and then make sure that it is redirected to a correct URL but still keep 1 in the end of the URL or a URL at the end.
The goal is to enable people to enter a small URL such as: and still they are ending on the right page, and the content is counted with number 12
Any suggestions?
Thank you very Sam
You can use Apache / NGNX You can see URL rewrite for location handling in Nginx, which is most configurable for your webserver, which may be Apache. source: RiverEngine Recharge rule ^ ([0- 9] +) $ index .php? Number = $ 1
Comments
Post a Comment