Plugin Directory

Changeset 1455885 for https-redirection


Ignore:
Timestamp:
07/17/2016 05:24:24 AM (10 years ago)
Author:
mra13
Message:

committing v1.5

Location:
https-redirection/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • https-redirection/trunk/https-redirection-settings.php

    r1384402 r1455885  
    3434    }
    3535    /* Display form on the setting page */
    36 ?>
     36    ?>
    3737        <div class="wrap">
    3838            <div class="icon32 icon32-bws" id="icon-options-general"></div>
    3939            <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.
    4745                </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>
    5146            </div>
     47
     48            <?php
     49            if ( get_option('permalink_structure') ) {
     50            //Pretty permalink is enabled. So allow HTTPS redirection feature.
     51            ?>
    5252            <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>
    5353            <div class="updated fade" <?php if (!isset($_REQUEST['httpsrdrctn_form_submit']) || $error != "") echo "style=\"display:none\""; ?>><p><strong><?php echo $message; ?></strong></p></div>
     
    8787                    <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
    8888                </p>
    89     <?php wp_nonce_field(plugin_basename(__FILE__), 'httpsrdrctn_nonce_name'); ?>
     89                <?php wp_nonce_field(plugin_basename(__FILE__), 'httpsrdrctn_nonce_name'); ?>
    9090            </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        ?>
    98118        </div>
    99119    <?php
  • https-redirection/trunk/https-redirection.php

    r1105728 r1455885  
    55  Description: The plugin HTTPS Redirection allows an automatic redirection to the "HTTPS" version/URL of the site.
    66  Author: Tips and Tricks HQ
    7   Version: 1.4
     7  Version: 1.5
    88  Author URI: https://www.tipsandtricks-hq.com/
    99  License: GPLv2 or later
  • https-redirection/trunk/readme.txt

    r1384402 r1455885  
    44Tags: redirection, https, automatic redirection, htaccess, ssl, https redirection, ssl certificate, secure page, secure, force ssl, force https
    55Requires at least: 3.5
    6 Tested up to: 4.5
    7 Stable tag: 1.4
     6Tested up to: 4.6
     7Stable tag: 1.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1515= Only use this plugin if you have installed SSL certificate on your site and HTTPS is working correctly =
    1616
    17 After you install SSL certificate on your site, you want to use the "HTTPS" URL of your webpages.
     17After you install SSL certificate on your site, you should use the "HTTPS" URL of your webpages.
    1818
    1919You want to force search engines to index your HTTPS version of the webpage(s).
     
    9292== Changelog ==
    9393
     94= v1.5 =
     95- WordPress 4.6 compatibility.
     96
    9497= v1.4 =
    9598- 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.