Added browser routing support to rid of hash.

This commit is contained in:
Amy J. Ko 2021-12-31 14:14:48 -08:00
parent 4d12de2173
commit 6dc68fa17c
2 changed files with 8 additions and 1 deletions

7
.htaccess Normal file
View file

@ -0,0 +1,7 @@
# Set the path to prepend to all rewrites.
RewriteBase ajko/books/cooperative-software-development
# Redirect all non-directory paths to index.html for single-page routing,
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.html [L,QSA]

View file

@ -56,7 +56,7 @@
</style>
</head>
<body onload="bookish()">
<body onload="bookish('ajko/books/cooperative-software-development')">
<script type="text/javascript">