Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/thoda-dev/angular-cli-redirect-script. server config scripts for IIS and Apache for angular cli to make url to work directly in browser
···11-# angular-cli-redirect-script
22-server config for angular url to work directly in browser
11+# Angular-cli-redirect-script
22+33+Server configuration file to add to your project for URL rewrite to work fine in production
44+55+# How to use
66+77+- copy the file depending on your platform to the source root directory of your project (`<project_patch>/src/`)
88+ * `.htaccess` for apache
99+ * `web.config` for IIS
1010+- open the file `angular.json` or `angular-cli.json` depending on the angular version (should be at the root of your project)
1111+- add the script to the build assets like the favicon `favicon.ico` or the `assets` directory
1212+1313+For apache :
1414+1515+```json
1616+"assets": [
1717+ "src/favicon.ico",
1818+ "src/assets",
1919+ "src/.htaccess"
2020+]
2121+```
2222+2323+For IIS :
2424+2525+```json
2626+"assets": [
2727+ "src/favicon.ico",
2828+ "src/assets",
2929+ "src/web.config"
3030+]
3131+```
+7
apache/.htaccess
···11+RewriteEngine On
22+ # If an existing asset or directory is requested go to it as it is
33+ RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
44+ RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
55+ RewriteRule ^ - [L]
66+ # If the requested resource doesn't exist, use index.html
77+RewriteRule ^ /index.html