Fix ajax requests not working in Nginx

/frontend/ajax.php request should also go through the index.php