Well I had a aha moment today, so I thought I should share this. I know that the title is a bit confusing.
There are times still I have to use Windows. And there are times when you have to develop for IE7. My set up for this is using IE 7 on Windows XP which is installed in VMware running on Windows 7. Well I could do it on Ubuntu as well. And I use XAMPP on Windows 7 for development.
Use IPv4 Address value
I had a hard time to display localhost on IE 7. When I use http://localhost/mywebsite, it works fine in my browsers on Windows 7, but it did not display in browsers in Windows XP. In a short answer, use http://192.168.1.2/. If this does not work for you, read on.
On Windows 7, go to Control panes > Network and Internet > Networking and Sharing center, then click your wireless connection or if you are using cable, then cable connection. Please note that it is not a VMware Adapters. When you open the Wireless Network Connection status, click Details. Find the vaule for IPv4 Address. For me it is 192.168.1.2. Use this in a browser in VMware to display a localhost from Windows 7.
Using CodeIgniter?
If you are using CodeIgniter, then you need to do one more step. Open your system>application>config>config.php and add the following to your base_url.
$config['base_url'] = "http://192.168.1.2/mywebsite/";
Without this line, all the internal links, images, CSS and scripts are broken. Adding this will fix the problems.



















