Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

MS Shohan msshohan

🏠
Working from home
Block or report user

Report or block msshohan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Shiponkormoker
Shiponkormoker / .htaccess
Last active Sep 11, 2019
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.