url - Github website hosting, handling incorrect subpages -


i have hosted simple singlepage html/css website on github. wanted redirect incorrect subpages (ie mysite.com/m) redirect homepage (mysite.com) default route. can achieved on static site on github?

you can create /m/index.html file containing :

<!doctype html> <meta charset=utf-8> <title>redirecting...</title> <link rel=canonical href="/index.html"> <meta http-equiv=refresh content="0; url=/index.html"> <h1>redirecting...</h1> <a href="/index.html">click here if not redirected.</a> <script>location='/index.html'</script> 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -