Something went wrong. Try again.
[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
Something went wrong. Try again.
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/).htaccessfor apacheweb.configfor IIS
- open the file
angular.jsonorangular-cli.jsondepending on the angular version (should be at the root of your project) - add the script to the build assets like the favicon
favicon.icoor theassetsdirectory
For apache :
"assets": [
"src/favicon.ico",
"src/assets",
"src/.htaccess"
]
For IIS :
"assets": [
"src/favicon.ico",
"src/assets",
"src/web.config"
]