Support » Fixing WordPress » After log in- To home page

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m sure there must be a plugin that could handle this. Have you looked in the Plugin Directory for a redirect plugin or some such thing?

    Here is a little hack, open wp-login.php and look for
    $redirect_to = admin_url();

    replace it with…
    $redirect_to = get_option('siteurl');

    A caveat: altering core files is not usually a good idea especially since any mods you make will vanish the next time you upgrade.

    There are at least two ways to do this without modifying the core files.

    The easiest would be to modify your link to the login page in your theme. Instead of linking to /wp-login.php, add /wp-login.php?redirect_to=/ – assuming wordpress is running your main site. If wordpress is hosted in a sub-directory (e.g. http://www.example.com/wordpress) then use /wordpress/wp-login.php?redirect_to=/wordpress.

    thank you very much guys! Problem solved!!! 😀

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘After log in- To home page’ is closed to new replies.