I have two domain names but I have each domain name directing to the same IP. How could I redirect each domain to the correct place using the index.html file? Below is some pseudo code:
if web adddress= http://siteA.com forward too http://siteA.com/siteA_Dir
if web address = http://SiteB.com forward too http://siteB.com/siteB_Dir
else go to localhost:80
I do not want to use a htaccess file as I have not made one. I currently have this code in my index.html file:
<meta http-equiv="refresh" content="0; url=http://siteA/SiteA_Dir" />