php - clean URL

后端 未结 6 1573
傲寒
傲寒 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:32

    From what I have read and understand of it, there's 2 ways you can do this:

    1. The first being mod_rerite where everything seems to re fone through rewrite rules through the .htaccess file fairly simple to do but can put big load on webserver with large sites
    2. Use PHP to control the rerites this does use .htaccess but only to redirect everything back to the index.php where a dispatcher reroutes paths as necessary. There's a fantastic tutorial of this at phpvideotutorials.com the tutorial is called the tumblelog.

提交回复
热议问题