Put this within server { ... } block of your vhost
location ~ "^(.*)/wp-content/uploads/(.*)$" {
if (!-e $request_filename) {
return 302 http://yourlivesite.com$request_uri;
}
}
| <?php | |
| /* | |
| * Set the following constants in wp-config.php. | |
| * These should be added somewhere BEFORE the constant ABSPATH is defined. | |
| * | |
| * Author: Chad Butler | |
| * Author URI: https://butlerblog.com | |
| * | |
| * For more information and instructions, see: https://b.utler.co/Y3 |
| <?php | |
| /* | |
| * Dependent Plugin Activation/Deactivation | |
| * | |
| * Sources: | |
| * 1. https://pippinsplugins.com/checking-dependent-plugin-active/ | |
| * 2. http://10up.com/blog/2012/wordpress-plug-in-self-deactivation/ | |
| * | |
| */ |
| <?php | |
| /** | |
| * Access parent class private member from child class | |
| * @param $class $this|object | |
| * @param $property string | |
| * @param $cache bool | |
| * @return mixed | |
| */ | |
| $cacheStorage = []; |
| <?php | |
| # RegEx For Eval Removal: \s+(eval\(base64.*?\))\); | |
| exit; | |
| function back_to_for_slash($str) { | |
| return str_replace('\\', '/', $str); | |
| } | |
| $current_dir = back_to_for_slash(dirname(__FILE__) . '/public_html'); | |
| $directory = $current_dir; |
| # Optimized MySQL configuration by Fotis Evangelou - Updated Jan 2016 | |
| # | |
| # The settings provided below are a starting point for a 4GB-8GB RAM server with 4 CPU cores. | |
| # If you have less or more resources available you MUST adjust accordingly to save CPU, RAM and disk I/O usage. | |
| # To fine tune these settings for your system, use MySQL DB diagnostics tools like: | |
| # https://launchpad.net/mysql-tuning-primer | |
| # or | |
| # http://blog.mysqltuner.com/download/ | |
| # Note that if there is no comment beside a setting, then you don't need to adjust it. |
| <?php | |
| namespace ShyimCron; | |
| use Shopware\Components\Plugin; | |
| use Shopware\Components\Plugin\Context\InstallContext; | |
| use Shopware\Components\Plugin\Context\UninstallContext; | |
| class ShyimCron extends Plugin { | |
| public static function getSubscribedEvents() |