This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create .htaccess file within /wp-content/uploads/ and add the below code | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} http://dev.example.com # Only perform on dev site | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*) http://www.example.com/wp-content/uploads/$1 [L,P] | |
</IfModule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: WooCommerce Subscriptions Redirect to Checkout | |
* Description: Redirect customers to the checkout page when adding a subscription to their cart (rather than the checkout page, which is the default). | |
* Author: Simon Kelly | |
* Author URI: http://www.renegade-empire.com | |
* Version: 1.0 | |
* License: GPL v2 | |
*/ |
OlderNewer