How to handle trailing slashing in Google App Engine app.yaml

后端 未结 1 1280
刺人心
刺人心 2021-01-14 04:10

I ran into this problem trying to answer this SO question here: Removing PHP file extension when serving PHP files about how to route certain requests in app.yaml for Googl

1条回答
  •  终归单人心
    2021-01-14 05:09

    Use non-greedy regex.

    /(.*?)/?$
    

    DEMO

    0 讨论(0)
提交回复
热议问题