I have configured following route which takes 2 path components, works perfectly fine on local server with base href="/" in index.html. I had to change base href="/" to base href="./" while deploying in production server as a result the routes are not working. What am I doing wrong here.
const routes : Routes =[{path:":firstPathComponant/:secondPathComponant", component: HomeComponent}]
.htaccess
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.html