The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Creatrix
    Posted 3 years 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]
    # END WordPress

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

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    How exactly did you do that?

  3. Creatrix
    Posted 3 years 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 3 years ago #

    That process you used was incorrect. Please see Moving_WordPress.

Topic Closed

This topic has been closed to new replies.

About this Topic