[-] Classes : BugFix : Added htaccess ErrorDocument 404 in case rewrite mod is not available
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user