php - clean URL

后端 未结 6 1577
傲寒
傲寒 2020-12-15 09:17

I want to create a web site with pure PHP. I want to hide the url parameters. I.e. I want to make my web site with clean urls. Is there is any way to do this with out using

6条回答
  •  执念已碎
    2020-12-15 09:48

    Nope, no curl or framework doing this. Nor php at all.
    It is web server who deal with urls.
    So, if you want fake urls, you have to set up your web server to redirect certain urls to certain scripts.
    The most common way is to use Apache web server with mod_rewrite module

提交回复
热议问题