Support » Fixing WordPress » Keep getting redirected to wrong url after admin log-in

  • Hi, I installed WordPress into a subdirectory on my server, like so:

    After I click on login, I cannot get redirected to the ‘post’ page for in wp-admin. What gives, does anyone know?
    It looks like the redirect string in the address bar got it wrong. It looks like this:
    Can you identify what may be the problem?
    Initially I would just get the login page each time I logged in as admin. Then I went to manually delete the cookies. Now it just tells me my session has expired. How do I solve this?

    ps. There’s no problem when I’m logging in as any normal user. I could register and log in with that user’s account, but no luck trying to log in as admin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff


    Halfelf Minion 🚀

    Read “Site URL Resetting or Redirecting under WP v1.5b” at

    I am having this same problem, except that no user is properly redirected. I have tried every suggestion offered at except that following “Secure HTTPS ?” – all without success.

    I have a church web site at on which I use WordPress for certain portions. It has been my plan to eventually use WP 1.5 for the entire site. To that end I have installed MySQL and WP 1.5 on my computer, imported the database from my web site, and changed the siteurl in the options table to http://stpeters/wp/.

    Everything seems to be working, with WP using the Kubrick default theme. However, I cannot access the admin section to change to my custom theme. The log-in fails to redirect me to it.

    My static non-WP pages are at http://stpeters/ and the WP files are at http://stpeters/wp/. Of course there are subdirectories such as stpeters/wp/wp-admin. I am working under Windows 2000, Apache2, PHP 3.0 and MySQL 4.1.

    I can go to my home page at http://stpeters/index.html and from there I can successfully see the various categories using the pull down menu (Letters from the Rector, Vestry Minutes, etc), all in the default Kubrick Theme. But when I am at any of them (such as http://stpeters/wp/index.php?cat=5 Archive for the ‘Letters from our Rector’ Category) the right hand column does not include anything but the search textbox, the archive list, and the category list. This may be a feature of the Kubrick Theme. To see the log-in link I must delete the ?cat=5 in the address textbox and press enter. I then get the default index.php which shows all posts in all categories since Sept 2004. On the right in addition to the search box, archive list and category list are the WordPress link and a list of five items under “Meta” including the log-in link.

    If I click on the log-in link I get the log-in page. Whether I log in as “admin” or any user, I do not get taken to the post page in admin. I stay at the login page and the URL in the address bar changes from

    If I then use the back button to return to the index.php page, then refresh, the log-in link has changed to a log-out link. I presume this means that log-in set a cookie. I can undo this by going back to the login page and clicking on LogIn without entering a user name or password. No error is generated.

    I am at a loss as to what else to try. Can anyone get me through this?

    Apparently this thread is a dead-end as no one has replied to my post. Although I am running Apache 2, not IIS, under Windows 2000, I find that the Toby Simmons fixes reported elsewhere in this forum have almost completely solved my problem. Now I need to try the changes to wp-blog-header.php recommended there as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Keep getting redirected to wrong url after admin log-in’ is closed to new replies.