Generator for optimal .htaccess files supporting Angular 19, Angular 18, Angular 17, Angular 16, Angular 15, Angular 14, Angular 13, Angular 12, Angular 11, Angular 10, Angular 9, Angular 8, Angular 7 and less.
The goal of this project is to create an easy-to-use way to create .htaccess files for individual Angular applications. You can find the web-application here: https://julianpoemp.github.io/ngx-htaccess-generator/.
Light mode
Dark mode
Because an Angular app that uses the PathLocationStrategy can’t be served on a Apache web server without further configuration. Without a .htaccess file the web server does not know how to handle paths generated by Angular e.g. on reload. That also happens when you try to laod your app’s URL directly e.g. www.myapp.test/page1/section1. This would lead to a page not found exception.
The solution is an .htaccess file: It redirects the requests to your app’s index.html where your app is initialized. After that angular reads the request and outputs the content. With the reloading issue is fixed.
Hall of fame for contributors:
Brasilian Portuguese | pt-br | regivaldo |
Feel free to contribute!
npm install
to install all dependencies.npm start
in order to serve this web-application on http://localhost:4200You can translate this web application to another language or you found typos? You want to contribute translations? That’s pretty cool! 😄 Just do this:
src/assets/i18n/
.