add to index.js a redirect page call to a middle php file