Skip to content

Instantly share code, notes, and snippets.


Sharifuddin Shakil shakilbd948

View GitHub Profile
shakilbd948 / index.html
Created Apr 25, 2019 — forked from sarvar/index.html
Sticky Bootstrap navbar on scroll for Bootstrap 4
View index.html
<nav class="navbar" data-toggle="sticky-onscroll">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href=""></a>
shakilbd948 / .htaccess
Created Mar 28, 2019 — forked from ShiponKarmakar/.htaccess
Most Useful .htaccess Code
View .htaccess
#stop directory browsing
Options All -Indexes
# SSL Https active Force non-www
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
You can’t perform that action at this time.