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

    Allow Iframe but restrict direct access

    Read More Allow Iframe but restrict direct accessContinue

  • Web Dev

    Disable Cache while Chrome Developer Tools is open

    Read More Disable Cache while Chrome Developer Tools is openContinue

  • Web Dev | Wordpress

    Show excerpt on Woocommerce archive list

    Read More Show excerpt on Woocommerce archive listContinue

  • Wordpress

    Add robots meta tag to specific page

    Read More Add robots meta tag to specific pageContinue

  • Wordpress

    Genesis add title to Blog page

    Read More Genesis add title to Blog pageContinue

  • Web Dev

    SPF record to prevent spam delivery

    Read More SPF record to prevent spam deliveryContinue

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

© 2026 Raz Rassel

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