Skip to content

Raz Rassel

  • Home
  • About Raz
  • Contact Raz
  • Buy Now
YouTube Spotify
Raz Rassel
Web Dev

http to https in htaccess

## Begin – Force https
#
# If you need to redirect some pages, or set a canonical http to
# https redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#Force www and https:
RewriteEngine on

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#
## End – Force https

Post navigation

Previous Previous
non-www to WWW in htaccess
NextContinue
SPF record to prevent spam delivery

Similar Posts

  • Web Dev

    Disable Cache while Chrome Developer Tools is open

    Read More Disable Cache while Chrome Developer Tools is openContinue

  • Magento

    Magento 2 remove left layered nav

    Read More Magento 2 remove left layered navContinue

  • Web Dev

    Modal Popup

    Read More Modal PopupContinue

  • Web Dev | Wordpress

    Woocommerce default shipping selection

    Read More Woocommerce default shipping selectionContinue

  • Web Dev

    Allow Iframe but restrict direct access

    Read More Allow Iframe but restrict direct accessContinue

  • Web Dev | Wordpress

    Remove Images from WooCommerce pages

    Read More Remove Images from WooCommerce pagesContinue

YouTube Spotify
  • Home
  • About Raz
  • Contact Raz
  • Buy Now

© 2026 Raz Rassel

Scroll to top
  • Home
  • About Raz
  • Contact Raz
  • Buy Now