I recently transferred my site to a new server, and some users' DNS servers have still not been updated. I'd like to provide them an IP address to access my site in the meantime.
I set up an Alias in my 000-default.conf file so that http://(ip address)/alias goes to the home page of my blog, but of course all the links still point to the domain name, so as soon as anyone clicks a link, they are taken to the old server again.
Is there anyway to rewrite these URLs on the fly so that it's possible to browse and use the site while accessing it via an IP address and alias instead of the domain name?