I need to change the localhost to a IP address in Windows XP. i.e when I open localhost/ it should display content of the IP but the name/url should be localhost.
The thing is, I am using a virtual machine, Parallels Desktop, on mac to run windows. So to access the mac localhost on xp, I have to go to a IP address, but when I do, although it displays the page of the mac localhost, all the stylesheet and image links are still localhost/url so only text is shown, the rest leads to a 404 page.
i.e If I go to the IP which has this html page. The content is like this
It sounds like you are trying to test your site from your XP VM and your Mac has the files for your site. If so, you may need to create a Shard Folder (VMware has this, not sure if Parallels does) to access the files. You shouldn’t need a reference to the hostname.
I need to run the php files which are connected to a mysql all working on localhost (of Mac OSx ) and access it from the windows virtual machine on its localhost url . The whole point is to test the script/design on Internet Explorer.
Well…this is wrong in all cases.
Either reference it as real URL (http://the.real.ip/url/style.css) or just as relative URL (/url/style.css).
The latter should work fine as when you browse the site by the IP the browser automatically extends it to http://the.current.ip/url/style.css