mirror of
https://github.com/amyjko/cooperative-software-development
synced 2024-12-26 21:58:27 +01:00
Added missing MIME, updated fallback.
This commit is contained in:
parent
3d4e6ee4bd
commit
ff99de766b
1 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,9 @@ RewriteEngine On
|
||||||
|
|
||||||
RewriteBase /ajko/books/cooperative-software-development
|
RewriteBase /ajko/books/cooperative-software-development
|
||||||
|
|
||||||
|
# Define missing mjs MIME type.
|
||||||
|
AddType application/javascript .mjs
|
||||||
|
|
||||||
# Remove the ending trailing slash from any requests to avoid resolving to directory listings
|
# Remove the ending trailing slash from any requests to avoid resolving to directory listings
|
||||||
|
|
||||||
RewriteRule ^(.*)/$ $1.html
|
RewriteRule ^(.*)/$ $1.html
|
||||||
|
@ -16,4 +19,4 @@ RewriteRule ^(.*)$ $1.html [L,QSA]
|
||||||
# If we're processing a path that isn't a file or a directory, rewrite to index but preserve the query string.
|
# If we're processing a path that isn't a file or a directory, rewrite to index but preserve the query string.
|
||||||
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteRule (.*) index.html [L,QSA]
|
RewriteRule (.*) 404.html [L,QSA]
|
||||||
|
|
Loading…
Reference in a new issue