WordPress.org

Support

Support » How-To and Troubleshooting » 2.7’s admin_url function gives wrong URL

2.7’s admin_url function gives wrong URL

  • I have just started a new site with WP 2.7. I am running on my localhost under IIS7.

    When I go the login page, put in the correct password, and hit enter, the page refreshes with this URL:
    http://localhost/myblog/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2Fmyblog%2Fwp-admin%2Findex.php
    That is, the redirect_to address is being URLencoded, instead of being expressed as a URL.

    If I put in the wrong password, the page refreshes with the normal Error message.

    When I login properly it looks to me as though I’m being momentarily redirected to someplace under http://localhost/myblog/wp-login.php, but it goes by too fast for me to see where.

    I suspect that the issue is in the admin_url function, which seems to be new to 2.7. Am I right? What do I do?

Viewing 1 replies (of 1 total)
  • I’ve also been having a lot of issues getting 2.7 to run under IIS 7. Maybe they’re related. I can log in and access all the admin functionality, however accessing any blog posts or pages outside of index.php returns a 404 error. Downgrading to 2.5.1 works correctly.

Viewing 1 replies (of 1 total)
  • The topic ‘2.7’s admin_url function gives wrong URL’ is closed to new replies.
Skip to toolbar