title: Why does my page redirect to localhost in my wordpress blog?
body: <p>This is my site URL <a href="http://www.weblogicsol.com/" rel="noreferrer">http://www.weblogicsol.com/</a> , Here I installed a <strong>wordpress theme</strong> having URL <a href="http://www.weblogicsol.com/blog" rel="noreferrer">http://www.weblogicsol.com/blog</a> , the problem is this when I want to open the <strong>wp-admin</strong> (means when I write <a href="http://www.weblogicsol.com/blog/wp-admin" rel="noreferrer">http://www.weblogicsol.com/blog/wp-admin</a>) it <strong>redirect</strong> to 
  <strong>localhost</strong>. Please help me to solve this problem, I am in trouble.</p>
  
  <p>And if I write this code in wp-config file</p>
  
  <p>define('WP_HOME','http://example.com');
  define('WP_SITEURL','http://example.com');</p>
  
  <p>then this URL appears with an error message.</p>
  
  <p><a href="http://weblogicsol.com/blog/wp-login.php?redirect_to=http%3A%2F%2Fwww.weblogicsol.com%2Fblog%2F%2Fwp-admin%2F&amp;reauth=1" rel="noreferrer">http://weblogicsol.com/blog/wp-login.php?redirect_to=http%3A%2F%2Fwww.weblogicsol.com%2Fblog%2F%2Fwp-admin%2F&amp;reauth=1</a> </p>