Skip to content

Instantly share code, notes, and snippets.

View rngala's full-sized avatar
🏡
Working from home

Roney Ngala rngala

🏡
Working from home
View GitHub Profile
@davidvandenbor
davidvandenbor / hide_html.htaccess
Last active May 8, 2024 07:37
Apache: Hide HTML extension in URLs with htaccess
# This tag loads the rewrite module
<IfModule mod_rewrite.c>
# enable the rewrite engine
RewriteEngine On
# Set your root directory
RewriteBase /
# Remove the .html extension
RewriteCond %{THE_REQUEST} ^GET\ (.*)\.html\ HTTP
RewriteRule (.*)\.html$ $1 [R=301]
anonymous
anonymous / index.html
Created April 25, 2017 20:02
Planet hover effect part 3: with transition
<article class="earth-demo">
<div class="earth">
<div class="more-info">
<h1>Earth</h1>
<ul>
<li>Third planet from the Sun</li>
<li>Atmosphere: 21% oxygen</li>
<li>Liquid water on surface</li>
<li>Only planet that has life (that we know of)</li>
</ul>