Enable 404 fallbacks option – code issue
-
On 3 separate sites on 3 different host servers the Enable 404 fallbacks option code below is not creating the ErrorDocument 404 line of htaccess code in the Autoptimize cache folder htaccess file.
if ( self::do_fallback() === true ) { $content .= "\nErrorDocument 404 " . trailingslashit( parse_url( content_url(), PHP_URL_PATH ) ) . 'autoptimize_404_handler.php'; } @file_put_contents( $htaccess, $content ); // @codingStandardsIgnoreLine
The topic ‘Enable 404 fallbacks option – code issue’ is closed to new replies.