How to redirect or force websites from HTTP to HTTPS via .htaccessHow to redirect or force websites from HTTP to HTTPS via .htaccess. This guide is your blueprint to redirecting your website from the normal HTTP header to the more secured HTTPS. It must be noted that for HTTPS to work on your website, you must purchase and install an SSL certificate on your server. SSL requires paid subscription to leading security

certificate providers such as Comodo and Symantec. One good free alternative is to acquire a free SSL certificate from Lets Encrypt. However, this entails that you have at least SSH access or that your hosting provider allows installation of SSL via the CPanel. Finally, this guide requires intermediate know-how on the intricacies of the .htaccess files.How to redirect or force websites from HTTP to HTTPS via .htaccess

 

How to redirect or force websites from HTTP to HTTPS via .htaccess

➤ How to redirect or force websites from HTTP to HTTPS via .htaccess and phpMyAdmin
    To begin, use Notepad or your favorite Text Editor (Notepad++, Vim or Brackets), then paste the code below into your .htaccess file. Remember to create a backup before proceeding.
Try the following:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
Also, you can redirect based on port number, for example:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
Note: You can opt to replace https://%{SERVER_NAME}%{REQUEST_URI} with your sample domain name e.g. https://www.sample.com/$1, as long as you include this line RewriteCond %{HTTP_HOST} ^sample\.com [NC] below the code RewriteEngine On. Also, you can retain ^.* in the rewrite code or use ^(.*) instead. Using these instead of the rewrite code above, will give us this:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^sample\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.sample.com/$1 [R,L]
For SEO purposes, you may use [R=301, L] instead of [R,L]. The latter code, [R,L], tells search engines that the authority of the content must remain on the originating domain (http://sample.com for example). This is known as a temporary or a 302 redirect. If you wish to move the SEO content authority to the new domain which for this purpose is https://www.sample.com, then use [R=301,L]. This is better known as a permanent or a 301 Redirect. To implement a 301, look at the code below:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^sample\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^.*$ https://www.sample.com/$1 [R=301,L]
You may also apply the rewrite code only to a specific folder:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} subfolder
RewriteRule ^(.*)$ https://www.sample.com/subfolder/$1 [R,L]
Change ‘subfolder’ to your custom folder or directory name.
Let me know if this .htaccess stuff works for you. Remember to create a backup. Please post your comments or suggestions below.
posted May 9, 2018 by THE11thROCK for TeraBlitz.com
FAIR USE DISCLAIMER: The following data is for educational, scholarship review and archiving purposes only. By viewing this information, you release the website and its authors from any responsibility or liabilities. Though we verify and maintain the accuracy of the provided data, the absence of unintented typographical and factual errors cannot be guaranteed. Use the page at your own risk. For any suggestions, updates, credits or correction requests, Contact Us: terablitz.rock@gmail.com

140 Common Hex Color Names – Browser Friendly Cheat Sheet

140-hex-colorsThese are the Color Names Supported by All Browsers 140 color names are defined in the HTML and CSS color specification (17 standard colors plus 123 more). The table below lists them all, along with their Hex values.
Tables are listed by alphabetical order and by their corresponding Hex hierarchy. The 17 standard colors are: Aqua, Black, Blue, Fuchsia, Gray, Green, Lime, Maroon, Navy, Olive, Orange, Purple, Red, Silver, Teal, White, and Yellow.140-hex-colors
Sorted by Hex Values
Color Name
Color and Hex Values
° Black
#000000
° Navy
#000080
° Dark Blue
#00008B
° Medium Blue
#0000CD
° Blue
#0000FF
° Dark Green
#006400
° Green
#008000
° Teal
#008080
° Dark Cyan
#008B8B
° Deep Sky Blue
#00BFFF
° Dark Turquoise
#00CED1
° Medium Spring Green
#00FA9A
° Lime
#00FF00
° Spring Green
#00FF7F
° Aqua
#00FFFF
° Cyan
#00FFFF
° Midnight Blue
#191970
° Dodger Blue
#1E90FF
° Light Sea Green
#20B2AA
° Forest Green
#228B22
° Sea Green
#2E8B57
° Dark Slate Gray
#2F4F4F
° Lime Green
#32CD32
° Medium Sea Green
#3CB371
° Turquoise
#40E0D0
° Royal Blue
#4169E1
° Steel Blue
#4682B4
° Dark Slate Blue
#483D8B
° Medium Turquoise
#48D1CC
° Indigo
#4B0082
° Dark Olive Green
#556B2F
° Cadet Blue
#5F9EA0
° Cornflower Blue
#6495ED
° Medium Aqua Marine
#66CDAA
° Dim Gray
#696969
° Slate Blue
#6A5ACD
° Olive Drab
#6B8E23
° Slate Gray
#708090
° Light Slate Gray
#778899
° Medium Slate Blue
#7B68EE
° Lawn Green
#7CFC00
° Chartreuse
#7FFF00
° Aqua Marine
#7FFFD4
° Maroon
#800000
° Purple
#800080
° Olive
#808000
° Gray
#808080
° Sky Blue
#87CEEB
° Light Sky Blue
#87CEFA
° Blue Violet
#8A2BE2
° Dark Red
#8B0000
° Dark Magenta
#8B008B
° Saddle Brown
#8B4513
° Dark Sea Green
#8FBC8F
° Light Green
#90EE90
° Medium Purple
#9370DB
° Dark Violet
#9400D3
° Pale Green
#98FB98
° Dark Orchid
#9932CC
° Yellow Green
#9ACD32
° Sienna
#A0522D
° Brown
#A52A2A
° Dark Gray
#A9A9A9
° Light Blue
#ADD8E6
° Green Yellow
#ADFF2F
° Pale Turquoise
#AFEEEE
° Light Steel Blue
#B0C4DE
° Powder Blue
#B0E0E6
° Fire Brick
#B22222
° Dark Golden Rod
#B8860B
° Medium Orchid
#BA55D3
° Rosy Brown
#BC8F8F
° Dark Khaki
#BDB76B
° Silver
#C0C0C0
° Medium Violet Red
#C71585
° Indian Red
#CD5C5C
° Peru
#CD853F
° Chocolate
#D2691E
° Tan
#D2B48C
° Light Gray
#D3D3D3
° Thistle
#D8BFD8
° Orchid
#DA70D6
° Golden Rod
#DAA520
° Pale Violet Red
#DB7093
° Crimson
#DC143C
° Gainsboro
#DCDCDC
° Plum
#DDA0DD
° Burly Wood
#DEB887
° Light Cyan
#E0FFFF
° Lavender
#E6E6FA
° Dark Salmon
#E9967A
° Violet
#EE82EE
° Pale Golden Rod
#EEE8AA
° Light Coral
#F08080
° Khaki
#F0E68C
° Alice Blue
#F0F8FF
° Honey Dew
#F0FFF0
° Azure
#F0FFFF
° Sandy Brown
#F4A460
° Wheat
#F5DEB3
° Beige
#F5F5DC
° White Smoke
#F5F5F5
° Mint Cream
#F5FFFA
° Ghost White
#F8F8FF
° Salmon
#FA8072
° Antique White
#FAEBD7
° Linen
#FAF0E6
° Light Golden Rod Yellow
#FAFAD2
° Old Lace
#FDF5E6
° Red
#FF0000
° Fuchsia
#FF00FF
° Magenta
#FF00FF
° Deep Pink
#FF1493
° Orange Red
#FF4500
° Tomato
#FF6347
° Hot Pink
#FF69B4
° Coral
#FF7F50
° Dark Orange
#FF8C00
° Light Salmon
#FFA07A
° Orange
#FFA500
° Light Pink
#FFB6C1
° Pink
#FFC0CB
° Gold
#FFD700
° Peach Puff
#FFDAB9
° Navajo White
#FFDEAD
° Moccasin
#FFE4B5
° Bisque
#FFE4C4
° Misty Rose
#FFE4E1
° Blanched Almond
#FFEBCD
° Papaya Whip
#FFEFD5
° Lavender Blush
#FFF0F5
° Sea Shell
#FFF5EE
° Cornsilk
#FFF8DC
° Lemon Chiffon
#FFFACD
° Floral White
#FFFAF0
° Snow
#FFFAFA
° Yellow
#FFFF00
° Light Yellow
#FFFFE0
° Ivory
#FFFFF0
° White
#FFFFFF
Hex Colors Sorted by Alphabet
Color Name
Color and Hex Values
° Alice Blue
#F0F8FF
° Antique White
#FAEBD7
° Aqua
#00FFFF
° Aquamarine
#7FFFD4
° Azure
#F0FFFF
° Beige
#F5F5DC
° Bisque
#FFE4C4
° Black
#000000
° Blanched Almond
#FFEBCD
° Blue
#0000FF
° Blue Violet
#8A2BE2
° Brown
#A52A2A
° Burly Wood
#DEB887
° Cadet Blue
#5F9EA0
° Chartreuse
#7FFF00
° Chocolate
#D2691E
° Coral
#FF7F50
° Cornflower Blue
#6495ED
° Corn Silk
#FFF8DC
° Crimson
#DC143C
° Cyan
#00FFFF
° Dark Blue
#00008B
° Dark Cyan
#008B8B
° Dark Golden Rod
#B8860B
° Dark Gray
#A9A9A9
° Dark Green
#006400
° Dark Khaki
#BDB76B
° Dark Magenta
#8B008B
° Dark OliveGreen
#556B2F
° Dark Orange
#FF8C00
° Dark Orchid
#9932CC
° Dark Red
#8B0000
° Dark Salmon
#E9967A
° Dark Sea Green
#8FBC8F
° Dark Slate Blue
#483D8B
° Dark SlateGray
#2F4F4F
° Dark Turquoise
#00CED1
° Dark Violet
#9400D3
° Deep Pink
#FF1493
° Deep Sky Blue
#00BFFF
° Dim Gray
#696969
° Dodger Blue
#1E90FF
° Fire Brick
#B22222
° Floral White
#FFFAF0
° Forest Green
#228B22
° Fuchsia
#FF00FF
° Gainsboro
#DCDCDC
° Ghost White
#F8F8FF
° Gold
#FFD700
° Golden Rod
#DAA520
° Gray
#808080
° Green
#008000
° Green Yellow
#ADFF2F
° Honey Dew
#F0FFF0
° HotPink
#FF69B4
° Indian Red
#CD5C5C
° Indigo
#4B0082
° Ivory
#FFFFF0
° Khaki
#F0E68C
° Lavender
#E6E6FA
° Lavender Blush
#FFF0F5
° Lawn Green
#7CFC00
° Lemon Chiffon
#FFFACD
° Light Blue
#ADD8E6
° Light Coral
#F08080
° Light Cyan
#E0FFFF
° Light Golden Rod Yellow
#FAFAD2
° Light Gray
#D3D3D3
° LightGreen
#90EE90
° Light Pink
#FFB6C1
° Light Salmon
#FFA07A
° Light Sea Green
#20B2AA
° Light Sky Blue
#87CEFA
° Light Slate Gray
#778899
° Light Steel Blue
#B0C4DE
° Light Yellow
#FFFFE0
° Lime
#00FF00
° Lime Green
#32CD32
° Linen
#FAF0E6
° Magenta
#FF00FF
° Maroon
#800000
° Medium Aqua Marine
#66CDAA
° Medium Blue
#0000CD
° Medium Orchid
#BA55D3
° Medium Purple
#9370DB
° Medium Sea Green
#3CB371
° Medium Slate Blue
#7B68EE
° Medium Spring Green
#00FA9A
° Medium Turquoise
#48D1CC
° Medium Violet Red
#C71585
° Midnight Blue
#191970
° Mint Cream
#F5FFFA
° Misty Rose
#FFE4E1
° Moccasin
#FFE4B5
° Navajo White
#FFDEAD
° Navy
#000080
° Old Lace
#FDF5E6
° Olive
#808000
° OliveDrab
#6B8E23
° Orange
#FFA500
° OrangeRed
#FF4500
° Orchid
#DA70D6
° PaleGoldenRod
#EEE8AA
° PaleGreen
#98FB98
° PaleTurquoise
#AFEEEE
° PaleVioletRed
#DB7093
° PapayaWhip
#FFEFD5
° PeachPuff
#FFDAB9
° Peru
#CD853F
° Pink
#FFC0CB
° Plum
#DDA0DD
° PowderBlue
#B0E0E6
° Purple
#800080
° Red
#FF0000
° Rosy Brown
#BC8F8F
° Royal Blue
#4169E1
° Saddle Brown
#8B4513
° Salmon
#FA8072
° Sandy Brown
#F4A460
° Sea Green
#2E8B57
° Sea Shell
#FFF5EE
° Sienna
#A0522D
° Silver
#C0C0C0
° Sky Blue
#87CEEB
° Slate Blue
#6A5ACD
° Slate Gray
#708090
° Snow
#FFFAFA
° Spring Green
#00FF7F
° Steel Blue
#4682B4
° Tan
#D2B48C
° Teal
#008080
° Thistle
#D8BFD8
° Tomato
#FF6347
° Turquoise
#40E0D0
° Violet
#EE82EE
° Wheat
#F5DEB3
° White
#FFFFFF
° WhiteSmoke
#F5F5F5
° Yellow
#FFFF00
° YellowGreen
#9ACD32
DISCLAIMER: The following data is posted for informational and archiving purposes only. By viewing this information, you release the author from any responsibility or liabilities. Use at your own risk. For any updates or changes, comment below.
posted by THE11thROCK for TeraBlitz.com

Facebook Comments