On a Django 1.9 project I need to redirect:
to
https://examplebucket.s3.amazonaws.com/app/index.html
But I need https://examplce.com/app/ to be still visible on the browser address bar...
I know this must be possible in theory with Django because the previous team working on this project did a setup to serve the /static/ media files from an S3 bucket. And if I access those static files via https://example.com/static/app/index.html, they are served from the S3 bucket but the browser address bar still shows the original url I input.
I'm deploying an Ionic Browser project and I want the files (including the index) to be served from the S3 but the url needs to be user friendly, thats the reason.
<img src="https://blabla.s3.amazonaws.com/...">
). What you can do, is setup a CDN (for example CloudFront) to use a subdomain (e.g. static.example.com) that belongs to you. Then you point to that (<img src="https://static.example.com/...">
) instead. – dirkgrotenindex.html
itself a static file or a web page served from your django server that contains static files? If so, look at the source of index.html, what's the url for the images contained in index.html? – dirkgroten