• Hi there

    I have successfully moved many WordPress sites without an issue to different folders or servers, but a particular one is causing problems, because it keeps re-directing to original site.

    I actually copied a site into a directory /test.
    In wp-config, changed DB settings to point to a copy of the DB, and in the DB table “options”, changed siteurl & home to https://www.site.com/test.
    I thought this should be enough to get to the site & change the rest after logging in. However, no url including home or wp-admin works as one is re-directed to old site.

    I even tried without & with different .htaccess versions, including:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /test/
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    # END WordPress

    What obvious thing am I missing this time?

    Thank you in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Some servers have issues with multiple instances of WP running on the same top level domain (TLD). Have you tried to create a subdomin and copy it over to the directory created for the subdomain then use the subdomain as the TLD?

    Thread Starter xprt007

    (@xprt007)

    Hi there

    I have not tried that yet, will try it out, BUT I have just successfully transferred the site in the root folder from another account with the exact hosting package. The site was developed there in a sub-folder alongside, 4, 5 other sites, WP & Drupal(root) and all co-existed with no problem at all. I still have the copy there. That is why I am confounded that the exact set up, after the transfer is failing to work, although I have done all I normally do to get a test site in the root folder working, although I have adjust the 2 mentioned database values in the Options table for the test site, as well as its wp-config.php file.

    For this host, though this was the first with WP in root …

    I also manage another separate account & package, with main site (Drupal) in root & several test sites in sub-folders.

    May be it is something small am just overseeing, but just wondering what it could be.

    Will try out the subdomain option & see.

    Thank you & regards

    Some themes cause issues like this. That is why I was suggesting the sub-domain option

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Copy of site re-directing to old site’ is closed to new replies.