• Hello,

    I downloaded and configured WordPress this morning, but haven’t had any luck getting it to work. WP is installed at

    [url]/test/wordpress

    but if I go to that address I’m redirected to

    [url]/test/wordpress/test/wordpress

    and get a 404 error. If I try to log in, I go to

    [url]/test/wordpress/wp-login.php

    and enter a username and password, but when I hit the login button I get another 404 page. I checked the server error logs and found a reference to this (invalid) URL for every attempt to log in:

    [url]/test/wordpress/wp-login.php?redirect_to=%2Ftest%2Fwordpress%2Fwp-admin%2Findex.php%2Ftest%2Fwordpress%2Fwp-admin

    which is also a bit odd (the directory is repeated after wp-admin/index.php?).

    I’ve looked around online but haven’t found anything that helped yet. This is a fresh install; I downloaded latest.tar.gz this morning and created a new, empty MySQL database for the installation. When I run wp-install.php it finishes without any errors or warnings and gives me an admin login/password; that’s where all of this starts.

    Any suggestions would be appreciated!

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m having a similar error on one blog out of the half-dozen I maintain. As luck would have it, it’s the blog for my day job. In our case, the problem is only on initially logging in, and it redirects to [url]/weblog/%2Fweblog%2Fwp-admin%2F, which resolves to [url]/weblog//weblog/wp-admin/, of course. (Note the double forward slash.)

    To confuse matters further, once I’ve done the login, if I manually enter the correct path, I am logged in. And if I then log out and use the “logged out” page to login again, there is no error this time.

    Apparently something is working incorrectly in the case logic of the wp-login.php file, but I can’t locate it.

    Okay, I seem to have it fixed now.

    eep, when you’re logged in, go to “Settings,” and make sure you have both the “WordPress address” (the url where the installation is located) and the “Blog address” (the url where your home page will be) set correctly.

    That cleared up the error for us.

    I can’t even get into admin- when I try to log on as admin, it gives me the double address in my URL!!!

    https://www.entrepreneurialteams.com/blog/wordpress/https://www.entrepreneurialteams.com/blog/wp-login.php

    So, I can’t even get to the “settings” screen to set the path…

    HELP!

    See the following video for directions on setting the path in the database.

    https://educhalk.org/blog/?p=21

    figaro,
    you do a great job explaining the fix needed for that problem, but that wasn’t fixing my problem.
    I had already found that fix and tried it by going into the phpadmin and making sure my database url’s were correct and the same.
    this is very frustrating in that I have installed WP three times (completley cleaning out and setting up up new databases) using the root, the worpress, and the blog directories as “home” folders. all of them end up giving me the same problem, double URL’s when I try to log in as admin..
    I can’t even get into ADMIN!!!!

    thanks

    E Hays

    nevermind…

    got it!!!

    thanks – resolved

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP directory shown twice in generated URLs?’ is closed to new replies.