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 | Wordpress

    Remove Images from WooCommerce pages

    Read More Remove Images from WooCommerce pagesContinue

  • Web Dev | Wordpress

    Contact Form 7 in Google Tag Manager

    Read More Contact Form 7 in Google Tag ManagerContinue

  • Wordpress

    WordPress Disable Password Change Nofitication

    Read More WordPress Disable Password Change NofiticationContinue

  • Wordpress

    Add robots meta tag to specific page

    Read More Add robots meta tag to specific pageContinue

  • Magento

    Magento 2 remove left layered nav

    Read More Magento 2 remove left layered navContinue

  • Web Dev

    Allow Iframe but restrict direct access

    Read More Allow Iframe but restrict direct accessContinue

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

© 2026 Raz Rassel

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