angular prod apache config for route
Option 2: .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
# Don't rewrite files or directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# Rewrite everything else to index.html
# to allow html5 state links
RewriteRule ^ index.html [L]
</IfModule>Option 1: Virtual Host
<VirtualHost *:80>
ServerName my-app
DocumentRoot /path/to/app
<Directory /path/to/app>
RewriteEngine on
# Don't rewrite files or directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# Rewrite everything else to index.html
# to allow html5 state links
RewriteRule ^ index.html [L]
</Directory>
</VirtualHost>
Also in JavaScript:
- how to setup vue
- how to host a react website
- how to hash password in node js
- javascript date parse yyyy-mm-dd
- stream recording javascript
- java.lang.IllegalArgumentException: Can only download HTTP/HTTPS
- stop a video jquery
- js select div
- javascript go to page
- react map
- how to solve Could not write JSON: Infinite recursion (StackOverflowError)
- create angular project cli version 8
- js tostring
- visual studio appsettings development json not nested appsettings.json
- get object name javascript
- loopback relation include to json
- react native anination 2 valuse
- what is @ atsign in first of file path nodejs
- js local storage delete key
- nextjs with typescrip example
- sars
- how to disable cash through get request in angular
- angular event scroll end of page
- jquery set att