Hi, I am installing the latest wordpress in my local machine it works fine, now I uploaded my wpsite to freehosting. I change the credential in connecting the database , username ,password and host. It works fine when I run the front page but when i tried to login in wp-admin after successfully authenticated the redirection is going to my localhost not in the live site. How can I fix this
You have to edit the wp_options table - the first two rows have option_name fields of siteurl and home. You have to alter the option_value fields to match the proper url of your live site.