[-] Classes : BugFix : Added htaccess ErrorDocument 404 in case rewrite mod is not available

This commit is contained in:
François Gaillard
2012-01-09 14:33:08 +00:00
parent 76e9a80bbe
commit b993b657fc
+4
View File
@@ -1675,6 +1675,10 @@ FileETag INode MTime Size
fwrite($write_fd, $cache_control);
}
// In case the user hasn't rewrite mod enabled
fwrite($write_fd, "#If rewrite mod isn't enabled\n");
fwrite($write_fd, "ErrorDocument 404 " . $uri['physical'] . "index.php?controller=404\n\n");
fwrite($write_fd, "# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again\n");
fwrite($write_fd, "\n\n".trim($specific_after));
fclose($write_fd);