Changeset 1455885 for https-redirection
- Timestamp:
- 07/17/2016 05:24:24 AM (10 years ago)
- Location:
- https-redirection/trunk
- Files:
-
- 3 edited
-
https-redirection-settings.php (modified) (2 diffs)
-
https-redirection.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
https-redirection/trunk/https-redirection-settings.php
r1384402 r1455885 34 34 } 35 35 /* Display form on the setting page */ 36 ?>36 ?> 37 37 <div class="wrap"> 38 38 <div class="icon32 icon32-bws" id="icon-options-general"></div> 39 39 <h2><?php _e('HTTPS Redirection Settings', 'https_redirection'); ?></h2> 40 <?php if ( get_option('permalink_structure') ) { ?> 41 <div class="error"> 42 <p><strong><?php _e("Notice:", 'https_redirection'); ?></strong> <?php _e("It is very important to be extremely attentive when making changes to .htaccess file.", 'https_redirection'); ?></p> 43 <p><?php _e("If after making changes your site stops functioning, please open .htaccess file in the root directory of the WordPress install and delete everything between the following two lines", 'https_redirection'); ?>:</p> 44 <p style="border: 1px solid #ccc; padding: 10px;"> 45 # BEGIN HTTPS Redirection Plugin<br /> 46 # END HTTPS Redirection Plugin 40 41 <div style="background: #fff6d5; border: 1px solid #d1b655; color: #3f2502; margin: 10px 0; padding: 5px 5px 5px 10px; text-shadow: 1px 1px #ffffff;"> 42 <p>When you enable the HTTPS redirection, the plugin will force redirect the URL to the HTTPS version of the URL. 43 So before enabling this plugin's feature, enter your site's HTTPS URL (example: https://yoursite.com/some-page) in the browser's address bar to make sure the page loads correctly. 44 Otherwise you may get locked out if your SSL certificate is not installed correctly on your site or the HTTPS URL is not working and this plugin is auto redirecting to the HTTPS URL. 47 45 </p> 48 <p><?php _e("Save file. Deactivate the plugin or rename the plugin folder.", 'https_redirection'); ?></p>49 50 <p><?php _e('The changes will be applied immediately after saving the changes, if you are not sure - do not click the "Save changes" button.', 'https_redirection'); ?></p>51 46 </div> 47 48 <?php 49 if ( get_option('permalink_structure') ) { 50 //Pretty permalink is enabled. So allow HTTPS redirection feature. 51 ?> 52 52 <div id="httpsrdrctn_settings_notice" class="updated fade" style="display:none"><p><strong><?php _e("Notice:", 'https_redirection'); ?></strong> <?php _e("The plugin's settings have been changed. In order to save them please don't forget to click the 'Save Changes' button.", 'https_redirection'); ?></p></div> 53 53 <div class="updated fade" <?php if (!isset($_REQUEST['httpsrdrctn_form_submit']) || $error != "") echo "style=\"display:none\""; ?>><p><strong><?php echo $message; ?></strong></p></div> … … 87 87 <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> 88 88 </p> 89 <?php wp_nonce_field(plugin_basename(__FILE__), 'httpsrdrctn_nonce_name'); ?>89 <?php wp_nonce_field(plugin_basename(__FILE__), 'httpsrdrctn_nonce_name'); ?> 90 90 </form> 91 <?php } else { ?> 92 <div class="error"> 93 <p><?php _e('HTTPS redirection only works if you have pretty permalinks enabled.', 'https_redirection'); ?></p> 94 <p><?php _e('To enable pretty permalinks go to <em>Settings > Permalinks</em> and select any option other than "default".', 'https_redirection'); ?></p> 95 <p><a href="options-permalink.php">Enable Permalinks</a></p> 96 </div> 97 <?php } ?> 91 92 <div style="background: #FFEBE8; border: 1px solid #CC0000; color: #333333; margin: 10px 0; padding: 5px 5px 5px 10px;"> 93 <p><strong><?php _e("Notice:", 'https_redirection'); ?></strong> <?php _e("It is very important to be extremely attentive when making changes to .htaccess file.", 'https_redirection'); ?></p> 94 <p>If after making changes your site stops functioning, do the following:</p> 95 <p>Step #1: Open .htaccess file in the root directory of the WordPress install and delete everything between the following two lines</p> 96 <p style="border: 1px solid #ccc; padding: 10px;"> 97 # BEGIN HTTPS Redirection Plugin<br /> 98 # END HTTPS Redirection Plugin 99 </p> 100 <p>Step #2: Save the htaccess file (this will erase any change this plugin made to that file).</p> 101 <p>Step #3: Deactivate the plugin or rename this plugin's folder (which will deactivate the plugin).</p> 102 103 <p>The changes will be applied immediately after saving the changes, if you are not sure - do not click the "Save changes" button.</p> 104 </div> 105 106 <?php 107 } else { 108 //pretty permalink is NOT enabled. This plugin can't work. 109 ?> 110 <div class="error"> 111 <p><?php _e('HTTPS redirection only works if you have pretty permalinks enabled.', 'https_redirection'); ?></p> 112 <p><?php _e('To enable pretty permalinks go to <em>Settings > Permalinks</em> and select any option other than "default".', 'https_redirection'); ?></p> 113 <p><a href="options-permalink.php">Enable Permalinks</a></p> 114 </div> 115 <?php 116 } 117 ?> 98 118 </div> 99 119 <?php -
https-redirection/trunk/https-redirection.php
r1105728 r1455885 5 5 Description: The plugin HTTPS Redirection allows an automatic redirection to the "HTTPS" version/URL of the site. 6 6 Author: Tips and Tricks HQ 7 Version: 1. 47 Version: 1.5 8 8 Author URI: https://www.tipsandtricks-hq.com/ 9 9 License: GPLv2 or later -
https-redirection/trunk/readme.txt
r1384402 r1455885 4 4 Tags: redirection, https, automatic redirection, htaccess, ssl, https redirection, ssl certificate, secure page, secure, force ssl, force https 5 5 Requires at least: 3.5 6 Tested up to: 4. 57 Stable tag: 1. 46 Tested up to: 4.6 7 Stable tag: 1.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 15 15 = Only use this plugin if you have installed SSL certificate on your site and HTTPS is working correctly = 16 16 17 After you install SSL certificate on your site, you want touse the "HTTPS" URL of your webpages.17 After you install SSL certificate on your site, you should use the "HTTPS" URL of your webpages. 18 18 19 19 You want to force search engines to index your HTTPS version of the webpage(s). … … 92 92 == Changelog == 93 93 94 = v1.5 = 95 - WordPress 4.6 compatibility. 96 94 97 = v1.4 = 95 98 - Improved the settings area to only show the options if pretty permalink feature is enabled.
Note: See TracChangeset
for help on using the changeset viewer.