Github pages allows you to create a 404.html
page that will be shown each time ... there is a 404 error. If http://USER.github.io/PROJECT_NAME/about
doesn't exists, it will show your 404.html
content with the "not found" url as window.location
.
So, this page can contain a script that redirect to a hashbang style route.
eg : react router, even using clean urls (browserHistory) can understand a route like PROJECT_NAME/#/about
and will automatically push to PROJECT_NAME/about
.
That's ugly !
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…