Manage URL routes in own php framework

前端 未结 12 2251
盖世英雄少女心
盖世英雄少女心 2021-02-02 16:34

I\'m creating a PHP Framework and I have some doubts...

The framework takes the url in this way: http:/web.com/site/index

It takes the first paramet

12条回答
  •  無奈伤痛
    2021-02-02 16:57

    Are you sure you have your htaccess correctly?

    I guess if you're placing your framework on subfolder, then you have to change your RewriteBase in htaccess file from / to /subfolder/. it would be something like this:

    # on root
    RewriteBase /
    
    #on subfolder
    RewriteBase /subfolder/
    

    that's only thing I could wonder of that in your case ...

提交回复
热议问题