Skip to content

Instantly share code, notes, and snippets.

@lyquix-owner
Created June 3, 2016 21:00
Show Gist options
  • Save lyquix-owner/26d10bd264e874576b04a67db965f931 to your computer and use it in GitHub Desktop.
Save lyquix-owner/26d10bd264e874576b04a67db965f931 to your computer and use it in GitHub Desktop.
Force directory to use SSL
# Force directory to SSL #
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} ^/phpmyadmin/?
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment