Hi,
Now is up and running www.onevent.ro/wp-admin/
define( ‘WP_DEBUG’, true );
/* Add any custom values between this line and the “stop editing” line. */
// Enable Debug logging to the /wp-content/debug.log file
define( ‘WP_DEBUG_LOG’, true );
// Disable display of errors and warnings
define( ‘WP_DEBUG_DISPLAY’, false );
define( ‘FS_METHOD’, ‘direct’ );
/**
* The WP_SITEURL and WP_HOME options are configured to access from any hostname or IP address.
* If you want to access only from an specific domain, you can modify them. For example:
* define(‘WP_HOME’,’http://example.com’);
* define(‘WP_SITEURL’,’http://example.com’);
*
*/
/*
define(‘WP_HOME’,’https://www.onevent.ro’);
define(‘WP_SITEURL’,’https://www.onevent.ro’);
*/
if ( defined( ‘WP_CLI’ ) ) {
$_SERVER[‘HTTP_HOST’] = ‘127.0.0.1’;
}
if (isset($_SERVER[‘HTTP_CLOUDFRONT_FORWARDED_PROTO’]) && $_SERVER[‘HTTP_CLOUDFRONT_FORWARDED_PROTO’] === ‘https’) {
$_SERVER[‘HTTPS’] = ‘on’;
}
define( ‘WP_HOME’, ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/’ );
define( ‘WP_SITEURL’, ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/’ );
define( ‘WP_AUTO_UPDATE_CORE’, ‘minor’ );
/* That’s all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( ‘ABSPATH’ ) ) {
define( ‘ABSPATH’, __DIR__ . ‘/’ );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . ‘wp-settings.php’;
/**
* Disable pingback.ping xmlrpc method to prevent WordPress from participating in DDoS attacks
* More info at: https://docs.bitnami.com/general/apps/wordpress/troubleshooting/xmlrpc-and-pingback/
*/
if ( !defined( ‘WP_CLI’ ) ) {
// remove x-pingback HTTP header
add_filter(“wp_headers”, function($headers) {
unset($headers[“X-Pingback”]);
return $headers;
});
// disable pingbacks
add_filter( “xmlrpc_methods”, function( $methods ) {
unset( $methods[“pingback.ping”] );
return $methods;
});
}
#Pentru a dezactiva oEmbed în WordPress
add_filter(“embed_oembed_discover”, “__return_false”);