Problem Summary:
I have two separate angular projects:
- My portfolio website
- My personal project named "Agency"
I have successfully deployed these two projects on Netlify.
Then, I set up a custom domain for my portfolio website.
The URL for these projects are as follows:
- Portfolio website (www.snsakib.com)
- "Agency" website (https://project-agency.netlify.com)
I'm now trying to change the "Agency" website's URL as follows:
"www.snsakib.com/projects/agency/live-demo"
Background & what I've already tried:
Both projects are created with Angular 8.
I've found this question & this question are somewhat close to my problem.
I've successfully implemented the techniques provided by the above questions into a normal HTML,CSS & JS project. But when I try to implement this same technique to an Angular project the browser renders a blank page.
I've created a _redirects
file in my portfolio website's repo & added the following rules:
# Redirects rules for showing project live demos
/projects/agency/live-demo https://project-agency.netlify.com 200!
# Redirects rules for single page application
/* /index.html 200
Expected Result:
While visiting "www.snsakib.com/projects/agency/live-demo" link the browser should render the website but it renders a blank white page.
If I visit the Netlify provided URL (https://project-agency.netlify.com) then the website renders properly.