Right now, I have a site entirely on an EC2 instance including all static files like css, js, and images. I'm wondering about the best way to handle moving them. For example, in my
<HEAD> on a given html page I have this reference to a .js file:
What I want to avoid is having to go in and update this (and a bunch of others) to something like:
I'm not worried about moving the files to S3 (yet), but more about how to rewrite these links. I'm thinking there has to be some way around this.
For completeness, I'm currently using a load balancer in front of the EC3 instance (which is also where I have my SSL). I'm also using Route 53 for DNS.
Any insights would help.