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
Post a Comment