Home  >  Q&A  >  body text

How thinkphp implements customization of url aliases

The specific scenario is:

  1. When the cms system adds columns or news, you can customize the url alias

    For example, one of my urls: http://cms. evd.cc/listing/12.html

    I want to make the following 12.html variable, and set the English alias in the background according to the user. If I

    set it to test, the front desk When accessed, it will become http://cms.evd.cc/listing/test.html

  2. Many people say to use tp5 routing, but tp5 routing only It can simplify the url, but cannot realize the variable alias of

    url

  3. Please give some advice, I don’t know how to do it

影清如梦影清如梦2088 days ago2158

reply all(4)I'll reply

  • prof

    prof2019-02-23 15:45:49

    -_-!Ha ha

    reply
    0
  • 影清如梦

    影清如梦2019-02-23 11:18:50

    Don’t Shen A

    reply
    0
  • 影清如梦

    影清如梦2019-02-23 11:18:30

    Give it a thumbs up and wait for the answer

    reply
    0
  • Cancelreply