Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Cloned WordPress gives page not found and admin logon redirects to original site



Threaded Mode | Print  

 Cloned WordPress gives page not found and admin logon redirects to original site (4 Replies, Read 5895 times)
litebit
Group: Member
Post Group: Newbie
Posts: 8
Status:
Hi,
I'm trying to clone a Wordpress site for development, but
  1. the cloned site gives a 404 page not found,
  2. trying to access the admin login page, redirects to the admin login page of the original site.

Software and Versions involved are :
  • - Softaculous 5.0.4
  • - WP version 4.9.6 (the cloned version seems to be upgraded automatically to 4.9.7??)
  • - Directadmin


Original site : (https) www domainname com
Cloned site (on a subdomain and folder) : (https) test domainname com / dev

Is there anything I
a) should do on the original site before cloning or
b) can do on the cloned site to fix it?

Keeping in mind that we'll have to clone the site every few weeks

I appreciate any advice or feedback
Thanks


IP: --   

Cloned WordPress gives page not found and admin logon redirects to original site
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5641
Status:
Hi,

We are unable to replicate this issue on our test servers.

Can you please open a support ticket with us so that we can check this for you :
https://www.softaculous.com/support/

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

Cloned WordPress gives page not found and admin logon redirects to original site
litebit
Group: Member
Post Group: Newbie
Posts: 8
Status:
Hi,
I was able to fix it manually.
The problem seems to be your "clone function" not doing a needed DB update for the cloned site to work correctly?
in the database, the table "wp_options" or "wpxi_options" (depending on the installation by Softaculous), 2 records need updating :

where option_name = "home"
option_name = "siteurl"

replace the URL of the "old" site with the url of the new/cloned site.
for example with SQL :

UPDATE wp_options SET option_value = replace(option_value, 'oldurl', 'newUrl') WHERE option_name = 'home' OR option_name = 'siteurl';

Doy you want me to create a support or bug ticket for that?


IP: --   

Cloned WordPress gives page not found and admin logon redirects to original site
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5641
Status:
Hi,

We do update the installation URL with the new URL in the options table. Infact we also replace the URLs in all other tables as well.

We tested the same on our test servers and the URL is indeed replaced with the new one.

If you can open a support ticket with us we can check why the URL was not replaced in your case.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

Cloned WordPress gives page not found and admin logon redirects to original site
jpluttme
Group: Member
Post Group: Newbie
Posts: 1
Status:
Also had this issue.  The database for the staging site was not updated and following the OP's instructions for changing the url values in the table worked.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 29, 2024, 1:05 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.368