Fixed sub path redirects and removal of index.php in url