Skip to content

Instantly share code, notes, and snippets.

View shakilbd948's full-sized avatar

Sharifuddin Shakil shakilbd948

View GitHub Profile
@shakilbd948
shakilbd948 / index.html
Created April 25, 2019 06:51 — forked from sarvar/index.html
Sticky Bootstrap navbar on scroll for Bootstrap 4
<nav class="navbar" data-toggle="sticky-onscroll">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="http://bootbites.com">BootBites.com</a>
</div>
</div>
</nav>
@shakilbd948
shakilbd948 / .htaccess
Created March 28, 2019 09:08 — forked from ShiponKarmakar/.htaccess
Most Useful .htaccess Code
#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]