Excluding files from htaccess rewrite rules

前端 未结 2 1878
一生所求
一生所求 2021-01-06 13:42

I have an htaccess rewrite setup in my PHP application to route files via the bootstrapper file. In essence, the goal is to take a URL such as www.domain.com/view/key/value

2条回答
  •  遥遥无期
    2021-01-06 14:08

    If you remove the ajaxDispatcher.php line from the code you show, it should work - because of the !-f and !-d rules, requests to files that actually exist will be excluded from the rewrite ruke.

提交回复
热议问题