previously i used to work when i was using XAMP, now i have configured Apache2.2 on my machine and displays the URL as it is on the address bar.