• Hi,

    i have moved succesfully my wordpress from:

    http://www.valokuvaamoklik.fi/wp
    to
    http://www.valokuvaamoklik.fi

    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!)

    <html>
    <head>
    <meta http-equiv="Refresh" content="0;url=http://www.valokuvaamoklik.fi" />
    </head>
    </html>
    Thread Starter samireivinen

    (@samireivinen)

    Hi Threecows,

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

    Thread Starter samireivinen

    (@samireivinen)

    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.

    Thread Starter samireivinen

    (@samireivinen)

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

    thanks again!

    Thread Starter samireivinen

    (@samireivinen)

    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:

    http://valokuvaamoklik.fi/wp/2012/02/parempia-kuvia-kevyella-kalustolla/

    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:

    http://valokuvaamoklik.fi/2012/02/parempia-kuvia-kevyella-kalustolla/

    So my old hompage http://www.valokuvaamoklik.fi/wp -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 🙂

    Thread Starter samireivinen

    (@samireivinen)

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

    Quick Page/Post Redirect DEV

    and told it to redirect http://www.valokuvaamoklik.fi/wp to http://www.valokuvaamoklik.fi

    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.