Site redirecting from http to https [closed]
If your site and home URL are set to https, WordPress will redirect all requests made to it. Please check under Settings -> General if this is the case.
If your site and home URL are set to https, WordPress will redirect all requests made to it. Please check under Settings -> General if this is the case.
Try this instead: RewriteEngine On RewriteBase / RewriteCond %{HTTPS} !=on RewriteRule ^open-tour/(.*) https://%{SERVER_NAME}/open-tour/$1 [R,L]
If assets are enqueued properly they are using the exact URL they are enqueued with. If the protocol in URL is hardcoded that causes mismatch issues you are seeing. For proper protocol support enqueued URLs need to be either: created with protocol-aware API function from WP API (most if not all functions that produce URLs … Read more
You’ll need to update all of the URLs in your database to the HTTPS protocol: Go and download Interconnect IT’s Database Search & Replace Script here Unzip the file and drop the folder where your WordPress is installed (the root) and rename the folder to replace (screenshot) Navigate to the new folder you created in … Read more
I am answering this old question, as it still remains unanswered. Instead of using the plugin, you should use cPanel to redirect HTTP to HTTPS. It will help you to get rid of the infinite redirection loop issue. Follow these steps: Login to your cPanel account. Click on the File Manager. Ensure that public_html directory … Read more
I’d steer clear on editing the .htaccess if you’re just updating your website from HTTP to HTTPS. Try an alternative route: First, revert your .htaccess back to the default settings: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # … Read more
My advice is to make the whole site https. Either add https to the settings -> wordpress address & settings -> site address or remove https if it appears in either of those inputs. For securing admin login panel only: easy method but doesn’t show secure icon. right result but more steps to consider method.
Have you considered Protocol Rewriting? The code below will convert all http: and https: to // for each script, link, base, and image. Place this in your functions.php: add_action( ‘plugins_loaded’, ‘wpse_232287_init’ ); function wpse_232287_init() { // Initiate the function ob_start( ‘wpse_232287_remove_http’ ); } function wpse_232287_remove_http( $buffer ) { // Check for a Content-Type header, only … Read more
You should be able to amend those items from the database. In the table wp_options there are the option_names home and siteurl – editing these back to the http version should do the trick. You might also want to check your wp-config.php file for the following: define(‘WP_SITEURL’, ‘https://www.website.com/’); define(‘WP_HOME’, ‘https://www.website.com/’); And remove the ‘s’ here … Read more
I just saw this problem myself on my site. The issue for me was that the site was available as both https://example.com/ and http://example.com. If the first request to a page was for the http version, the links to assets would be to http: http://example.com/wp-content/themes/customizr/assets/front/img/thumb-standard-empty.png http://example.com/wp-content/uploads/… etc. These http asset links would get put into … Read more