I am attempting to route any requests that come from https://example.com/user/whatever to my "Get Our App" page located at https://example.com/get_app.html
Within my nginx.conf file, I have configured the following block:
#Redirecting all requests under /user/ to the "get App" page
location /user/ {
try_files $uri $uri/ /get_app.html;
}
The html file is successfully served; however, the css and images are not displaying. Instead, only a plain white page with the html content is shown. Interestingly, if I manually enter example.com/user/whatever
, the page displays correctly. What could be causing nginx to serve the file incorrectly when accessed through a redirect?