mod_rewrite redirect all requests to index.php except ajax

    1 answer 1

    From the server’s point of view, ajax requests are no different from normal. Therefore, the option to call all the scripts for ajax in a certain way, for example, put it in the /actions/ajax/ folder and set the mod_rewrite rules based on this.