WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Dupliacted WordPress site leads to 404 (4 posts)

  1. Creatrix
    Member
    Posted 11 months ago #

    I've just duplicated one of my wordpress sites (including the database but with a different table prefix than the original to keep them separate) and put it in a sub-folder.

    So my original site sits in http://www.example.com and the duplicated site sits in http://www.exmaple.com/two.

    When i go to the new address though i get a 404 error saying the page cannot be found?

    I believe this has something to do with the .htaccess file which currently looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /two/index.php [L]
    </IfModule>
    
    # END WordPress

    The domain also has an SSL if that makes any difference?

  2. esmi
    Forum Moderator
    Posted 11 months ago #

    How exactly did you do that?

  3. Creatrix
    Member
    Posted 11 months ago #

    - Downloaded the original site and database
    - Locally changed the table name prefix
    - Imported the new tables into the existing database
    - Uploaded new site to sub-folder '/two'
    - added the '/two' to .htaccess (seen above)

    and then next step is to update the links from exmaple.com to exmaple.com/two but i'm just getting a 404 when I visit the second domain.

    So effectively i've got two separate wordpress sites on the same domain using the same database (but with their own set of tables in each).

  4. esmi
    Forum Moderator
    Posted 11 months ago #

    That process you used was incorrect. Please see Moving_WordPress.

Reply

You must log in to post.

About this Topic