Support » Fixing WordPress » How could I make 301 redirection from "wp" folder to the root (my current homepa

  • Hi,

    i have moved succesfully my wordpress from:

    however, some outside links and google, still points to the old folder. The old folder “wp” gives now “page not found”. I have tried to change .htaccess file in the root to redirect, but without success. How could I make 301 redirection from “wp” folder to the root (my current homepage)?

    Thanks in advance 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • Add the following “redirect” code to an empty text file.
    Name it index.html
    Upload it to the “wp” folder (NOT to the root folder!)

    <meta http-equiv="Refresh" content="0;url=" />

    Hi Threecows,

    thanks for the reply. Do you know, does google accept this as a proper 301 redirection?

    hi again,

    i tried the code. i needed to remove wordpress created index.php from “wp” folder to get index.html work. Is it ok to remove? In the move I copied index.php from the wordpress folder “wp” to the root. In the instructions it was pointed that one most copy, not move index.php and .htaccess files.

    It is saver not to remove original files.
    You ‘d better rename index.php in the “wp” folder to indexOLD.php.
    So you can always get back to the original files if needed.

    I see now it works :).
    If you did remove index.php and/or index.html from the wp-folder: don’t worry!
    There is always a way to restore but I do not think that will be necessary.

    I just renamed index.php, so no problem 🙂
    Do you know is it proper way for google to do redirecting?

    thanks again!

    First I thought that this worked out, but now I had to return to starting point. It is not good idea to replace index.php with index.html that has redirection. Reason is that when somebody search, lets say this article:

    it would give an error, because it needs /wp/index.php to redirect articles and pages that are linked under /wp/ folder to the right address. This article for example needs to be redirected here:

    Parempia kuvia Elinchrom -studiovaloilla

    So my old hompage -rederection needs to be handeled somehow in .htaccess.

    I think this should be rather generic problem, so I think there should be an easy solution for this. PLEASE HELP 🙂

    ok, yeah, now I got it. Just installed this free plugin:

    Quick Page/Post Redirect DEV

    and told it to redirect to

    and now it works 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How could I make 301 redirection from "wp" folder to the root (my current homepa’ is closed to new replies.