Redirect all to index.php using htaccess

后端 未结 7 2261
情话喂你
情话喂你 2020-11-22 14:08

I\'m writing a simple PHP-based MVC-ish framework. I want this framework to be able to be installed in any directory.

My PHP script grabs the request uri and breaks

7条回答
  •  甜味超标
    2020-11-22 14:24

    Silly answer but if you can't figure out why its not redirecting check that the following is enabled for the web folder ..

    AllowOverride All

    This will enable you to run htaccess which must be running! (there are alternatives but not on will cause problems https://httpd.apache.org/docs/2.4/mod/core.html#allowoverride)

提交回复
热议问题