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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12269 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fGaillard
2012-01-09 14:33:08 +00:00
parent c5eafd327f
commit c5bd068892
+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);