Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Replacing old site with new wordpress site

Discussion in 'Misc WordPress Requests' started by greyhawk1961, Feb 14, 2018.

  1. greyhawk1961


    Reply To: Replacing old site with new wordpress site, by greyhawk1961

    Hi Kit,

    Thank you for explaining that for me.
    I guess my concern is: what if I’ve already installed wordpress into the root directory, designed the wordpress site, saved it all as a draft ?
    The link that Colin provided gives the following instructions:

    ” Method I (Without URL change)

    1) After Installing the wordpress in root folder, move EVERYTHING from root folder into subdirectory.

    2) Create a .htaccess file in root folder, and put this content inside (just change example.com and my_subdir):

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    RewriteCond %{REQUEST_URI} !^/my_subdir/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /my_subdir/$1
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    RewriteRule ^(/)?$ my_subdir/index.php [L]

    Do they mean move every folder and file from the root folder, including the old TextPattern files, including the new wordpress folder, to a new subdirectory, leaving nothing in the root folder except for a newly created “.htaccess” file containing the content above ?
    Please excuse my ignorance, I just don’t want to do something stupid and render the site unusable, or lose all the work I put into the WordPress version of the site.

    Thanks !

    Reply To: Replacing old site with new wordpress site

Share This Page

Monarch Social Sharing Plugin