Site re-directs to login page even after a successfull login Presently I am using the Windows Server on which the drupal 7.34 is installed with the xampp server.

The url for the site is localhost:8081/example

When I enter the URL(localohost:8081/example) to login, the page simply re-directs to the login page 



Whereas when I enter the complete URL (the IP address along with the port number it loads the site)



Now I can't figure out why the page is redirecting me to the login page but not the main page when I am entering the localhost:portno/example

[update]

Things Tried:-

1.Pinged the IP address and it was successful with no loss.

2.Tried it on a different browser Internet explorer got Error HTTP Error 403 Forbidden.

3.Tried on a different system with the same IP address and in that system the site loads fine.


Re-installed the drupal software again with the same localhost:portno/
This behavior is normal

The default front page of Drupal is this one. It displays the latest published and promoted nodes. If you want to put another node as a front page you can do it in configuration>site information

Also drupal assumes that your site is in the top level directory (e.g. yourserver:port/)
If you want to change it to yourserver:port/custompath/ then set the $base_url to custompath in your settings.php file