WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Dupliacted WordPress site leads to 404

[Resolved] Dupliacted WordPress site leads to 404

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    @esmi

    Forum Moderator

    How exactly did you do that?

    – 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).

    esmi

    @esmi

    Forum Moderator

    That process you used was incorrect. Please see Moving_WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Dupliacted WordPress site leads to 404’ is closed to new replies.