[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

README.md

Angular-cli-redirect-script #

Server configuration file to add to your project for URL rewrite to work fine in production

How to use #

  • copy the file depending on your platform to the source root directory of your project (<project_patch>/src/)
    • .htaccess for apache
    • web.config for IIS
  • open the file angular.json or angular-cli.json depending on the angular version (should be at the root of your project)
  • add the script to the build assets like the favicon favicon.ico or the assets directory

For apache :

"assets": [
    "src/favicon.ico",
    "src/assets",
    "src/.htaccess"
]

For IIS :

"assets": [
    "src/favicon.ico",
    "src/assets",
    "src/web.config"
]