0
I developed my page using angular
Only that by giving the ng build --prod --bh=/projeto/
When I want to access my system by sending a parameter via url
The same only works if you are using the previous
{provide: LocationStrategy, useClass: HashLocationStrategy}
Which I would access
http://localhost/projeto/#/parametro
I would like to access without needing to use the Hashlocationstrategy, but when I shoot and give a ng build --prod --bh=/projeto/
, and I try to access without the hash strategy, like this:
http://localhost/projeto/parametro
He gives Not Found
The requested URL /projeto/parametro was not found on this server.
But when accessing just like this
http://localhost/projeto/
He thinks
How do I access without having to hash.
My Apache is already activated
LoadModule rewrite_module modules/mod_rewrite.so
When the
ng build --prod --bh=/projeto/
give it to meUncaught SyntaxError: Unexpected token <
On the server, but if I take the--prod
, works– adventistaam