From 6dc68fa17cdf2d28ec83581af9d6c38fca2ff6d2 Mon Sep 17 00:00:00 2001 From: "Amy J. Ko" Date: Fri, 31 Dec 2021 14:14:48 -0800 Subject: [PATCH] Added browser routing support to rid of hash. --- .htaccess | 7 +++++++ index.html | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..86b1848 --- /dev/null +++ b/.htaccess @@ -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] \ No newline at end of file diff --git a/index.html b/index.html index 955ef53..17a5550 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,7 @@ - +