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. RiverEngine Recharge rule ^ ([0- 9] +) $ index .php? Number = $ 1

source:

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -