0

I have created two different individual angular apps that I now have to place under one folder.

For example: www.example.com/beta3/

So the two apps will be www.example.com/beta3/app1 and www.example.com/beta3/app2

I have configured the HashLocationStrategy for app1 and also configured the htaccess file. Everything works fine for app1, but when I reload app2 it always goes back to app1.

My .htaccess file

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$
RewriteRule (.*) http://www.example.com/beta3/app1 [R=301,L] 
Options -Indexes

How can I manage these two apps simultaneously?

1 Answer 1

1

Try this command for each project to be run simultaneously on single folder.

ng build --prod --base-href /beta3/app1

ng build --prod --base-href /beta3/app2
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.