An open API service indexing awesome lists of open source software.

https://github.com/jack-carling/htaccess

Apache .htaccess for https and SPA
https://github.com/jack-carling/htaccess

htaccess

Last synced: 5 months ago
JSON representation

Apache .htaccess for https and SPA

Awesome Lists containing this project

README

          

# Apache

```
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
```

Rewrite to https and enable single page applications, requires custom 404 handling. Place `.htaccess` file in root directory.