TLDR:
I want to do some work on a WP, but not on the live version (www.mysite.com
), so I cloned it to a subdirectory www.mysite.com/new
. Now I am trying to access it, but I get redirected to www.mysite.com/news/
- news page of the original WP.
Here are the steps I took:
- copied
index.php
andwp
folder to/new
folder - created new database and imported everything from the original one
- changed
wp_config.php
of the cloned WP to reflect database changes (different DB name and hostname, different password) - now, when trying to access
www.mysite.com/new
, I get redirected towww.mysite.com/news/
, which is the news page of the original WP
Here is the root directory of FTP:
and here is the new
directory:
I know I might need to replace the permalinks with database search and replace script, but at this stage I am at least expecting to see the cloned WP with links pointing to the original WP, not a redirect to news
page..
What am I doing wrong and how do I fix it?