• Resolved issieparis

    (@issieparis)


    Hi, i have installed my blog in a subdirectory. Now that it is almost finished i want to move it to the root directory and make it the main site in subtitution of the current one.

    What it would be the correct way to make this change without messing up all my server?

Viewing 11 replies - 1 through 11 (of 11 total)
  • To make WordPress available at https://mydomain.com just change in Settings->General, the Blog address (URL) to https://mydomain.com and put this index.php file in your web-root folder (it is the same folder that contains the blog folder)

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./blog/wp-blog-header.php');
    ?>

    Then update your permalinks in Settings->Permalinks.

    The above assumes blog is the sub-folder you have the WordPress install.

    Thread Starter issieparis

    (@issieparis)

    i just need to change he index.php file or the whole blog folder??

    If the folder is now blog, then you just need to PUT that index.php file in your web-root folder.

    If you have an index.html in your web-root folder now, that should be deleted.

    Thread Starter issieparis

    (@issieparis)

    thnks ill do it that way…

    Thread Starter issieparis

    (@issieparis)

    michael i did that way and all was fine, till i move the permalinks, then all the site messed up. I only see the html version because the.css its not been read. and i also cannot access the admin panel, getting a 404 response…
    im in panic…help please

    Is there a link to see the problem?

    Thread Starter issieparis

    (@issieparis)

    thank you, i already solved it with an answer you gave in another topic…

    i will try again, but all the problem was when i changed the permalinks…
    shoul i change them or not??

    Don’t change them then.

    Thread Starter issieparis

    (@issieparis)

    i understand the page redirects froom root to blog page, is it possible to make that the /blog doesnt show up on explorer field??

    I suppose there’s some .htaccess magic, but generally you would need to move your blog then. If that’s the case, review Moving WordPress. Don’t forget to backup your database and files (see WordPress Backups) before beginning.

    Thread Starter issieparis

    (@issieparis)

    ok thank you. ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘change blog from subdirectory to directory’ is closed to new replies.