The [R]
flag on its own is a 302
redirection (Moved Temporarily
). If you really want people using the HTTPS version of your site (hint: you do), then you should be using [R=301]
for a permanent redirect:
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R=301,L]
A 301
keeps all your google-fu and hard-earned pageranks intact. Make sure mod_rewrite
is enabled:
a2enmod rewrite
To answer your exact question:
Is it bad to redirect http to https?
Hell no. It’s very good.
Related Posts:
- Why is WordPress redirecting from http to https on a local environment?
- Upgrade to SSL Breaks Admin Dashboard
- Divert http to https with WordPress on IIS
- 403 error on admin login page
- Allow non-SSL pages to use https or Force non-SSL pages to http?
- All content is HTTPS, but browsers warn of HTTP mixed content [closed]
- My site doesn’t redirect from HTTP to HTTPS
- https to https problem – 404 and can’t login
- Website Migration (with https) to a new domain(http)
- Why does WordPress uses HTTPS for JS, CSS on EC2
- Specific Page/Post Need to Stay Non SSL
- Implications of not completing all tasks when switching to HTTPS
- Moving site from HTTP to HTTPS
- How to switch static files back to using HTTP instead of HTTPS?
- Any idea on how to fix this error when forcing SSL on a certain page?
- The plain HTTP request was sent to HTTPS port in wordpress [closed]
- Is it possible to generate RSA key without pass phrase?
- Multiple SSL domains on the same IP address and same port?
- Changing my URL in General Settings cause the site to crash
- How to force HTTP and stop SSL completey on WordPress website
- What is the difference between POST and PUT in HTTP?
- What is the difference between POST and PUT in HTTP?
- SSL Error: unable to get local issuer certificate
- How to redirect all HTTP requests to HTTPS
- https connection using CURL from command line
- @ converted to %40 in HTTPPost request
- Curl command for https ( SSL )
- nodejs – error self signed certificate in certificate chain
- Custom Tumblr theme wont save because of non-https urls?
- Simple Java HTTPS server
- HTTPS connection Python
- Java: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- How do you redirect HTTPS to HTTP?
- Could not establish secure channel for SSL/TLS with authority ‘*’
- Getting “Handshake failed…unexpected packet format” when using WebClient.UploadFile() with “https” when the server has a valid SSL certificate
- ndroid 8: Cleartext HTTP traffic not permitted
- Python requests SSL error – certificate verify failed
- Why am I suddenly getting a “Blocked loading mixed active content” issue in Firefox?
- Https to http redirect using htaccess
- How can I force users to access my page over HTTPS instead of HTTP?
- How to force Laravel Project to use HTTPS for all routes?
- How can I fix the “No certificates found – The app Chrome has requested a certificate” Android / Google Chrome issue
- Issues with installing python libraries on Windows : CondaHTTPError: HTTP 000 CONNECTION FAILED for url
- HTTP status code 0 – Error Domain=NSURLErrorDomain?
- SSL Breaks WordPress CSS
- Setting $_SERVER[‘HTTPS’]=’on’ prevents access to wp-admin
- Disable SSL / HTTPS for wordpress
- Switching MultiSite installation from HTTP to HTTPS
- Switch from https back to http
- Chrome Version 44.0.2403.89 m is trying to force HTTPS
- Is there a way to force ssl on certain pages
- SSL breaks customizer: page isn’t returned from ajax
- Disable all https in WordPress
- How to use WordPress multisite with mixed HTTP and HTTPS sites?
- Local version of a WordPress site – SSL/HTTPS enforced?
- Force HTTPS using .htaccess – stuck in redirect loop
- bloginfo() and get_template_directory_uri() with SSL?
- After updating site to use SSL all images in posts point to http://
- Serving HTTP and HTTPS from one installation
- WordPress is Inserting images into Post as HTTP and not HTTPS
- force http canonical tag on https pages
- Adding https to wordpress website
- How to redirect url requests to https? [closed]
- Globally force SSL on all pages
- Is the WordPress HTTPS Plugin Still Safe To Use? [closed]
- Force home page to be https?
- Redirect www to non-www htaccess
- Admin-Ajax.php, SSL, Non-SSL
- How disable SSL redirect for specific URL?
- Serve HTTPS requests from subdomain
- WordPress Move to SSL How to Update Media Assets to HTTPS?
- Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
- Remove HTTP: from the site URL and just keep // in it
- How are both HTTP and HTTPS versions displaying?
- WordPress – https : Css and Js files are not working (load on http instead of https)
- Make default new sites https (multisite)
- WordPress redirect loop on nginx + apache reverse proxy
- Redirect from https to http or from http to https? [closed]
- Remove the http protocol from images
- Locked out of WordPress Site Admin after enabling Force SSL on WordPress Https (SSL)
- SSL setup: wp-login css doesn’t load over httpS
- SSL: How to make customizer images Protocol Relative in WordPress?
- Mixed Content with SSL, wordpress behind a reverse proxy
- How to modify the .htaccess to force ssl on login and admin pages
- Cant Access Website – Changed HTTP to HTTPs
- https multiple redirects
- wp-admin redirect loop with ssl
- How to properly force https and www on multisite with Apache HTAccess
- AJAX requests broken due to HTTPS for wp-admin
- In WP versions >= 4.0, is FORCE_SSL_LOGIN forcing HTTPS for the entire admin session?
- Gravity Forms not loading under https, jQuery is not defined
- SSL Partially breaking admin panel and elementor
- Occasional HTTPS Mixed Content Warning
- Access general settings trough wordpress files
- Broken urls with http site and https wp-admin
- WordPress : To load all asset files coming from HTTP to HTTPS?
- Enable Full SSL for WordPress
- WordPress Redirecting HTTPS Requests to HTTP
- Infinite loop behind SSL proxy on non-standard port
- Can’t login to Dashboard when changing site URL to HTTPS