<p>I ended it up fixing the issue by replacing the /craft folder with the original installation folder and then just replacing /craft/templates and /craft/plugins from the existing site.</p>

CC BY-SA 3.0
2017-11-15T22:27:50.587Z
2017-11-15T22:27:50.587Z
univers_
<p>I'm trying to duplicate an existing Craft CMS site by moving it from an online server to a local installation using MAMP. I have copied the /craft folder and all files in the root of /public_html (including the htaccess file). I have exported and reimported the database using PHPMyAdmin.</p>

<p>But now when I go to localhost:8888 I get a "server not found" error because I've been redirected to www.localhost — is this the issue? I tried swapping out the htaccess file to the default one from the craft installation packet but then instead of getting a server not found I get blank pages.</p>

<p>Any ideas? I'm pretty sure the database imported correctly because I could login to /admin before I moved the /craft folder to the local server.</p>

CC BY-SA 3.0
2017-11-14T16:01:05.640Z
A hint from crafts documentation "If you’re getting a 404, your server might not be configured to redirect would-be 404’s to index.php correctly. Try going to http://example.com/index.php/admin or http://example.com/index.php?p=admin instead" so try adding a "index.php" since you have to change your mamp configuration to go to your index.php file directly otherwise
Robin Schambach
CC BY-SA 3.0
2017-11-14T16:12:01.353Z
By the way did you move your `index.php` file? Usually that file is in the public folder so if you didn't change your mamp  you would have to use `localhost:8888/public` anyway
Robin Schambach
CC BY-SA 3.0
2017-11-14T16:56:09.893Z
Thanks @RobinSchambach. I ended it up fixing the issue by replacing the /craft folder with the original installation folder and then just replacing /craft/templates and /craft/plugins from the existing site.
univers_
CC BY-SA 3.0
2017-11-14T20:02:31.110Z
Would you mind adding what worked for you as an official answer?  It might end up helping someone in the future.
Brad Bell
<installation>
Tried to duplicate site in local environment but loading blank
# Tried to duplicate site in local environment but loading blank

(Asked by: username_0 on 2017-11-14)

I'm trying to duplicate an existing Craft CMS site by moving it from an online server to a local installation using MAMP. I have copied the /craft folder and all files in the root of /public\_html (including the htaccess file). I have exported and reimported the database using PHPMyAdmin.

But now when I go to localhost:8888 I get a "server not found" error because I've been redirected to www.localhost — is this the issue? I tried swapping out the htaccess file to the default one from the craft installation packet but then instead of getting a server not found I get blank pages.

Any ideas? I'm pretty sure the database imported correctly because I could login to /admin before I moved the /craft folder to the local server.

**Tags:** installation
> **Comments:**
> **username_1**: A hint from crafts documentation "If you’re getting a 404, your server might not be configured to redirect would-be 404’s to index.php correctly. Try going to http://example.com/index.php/admin or http://example.com/index.php?p=admin instead" so try adding a "index.php" since you have to change your mamp configuration to go to your index.php file directly otherwise  
> **username_1**: By the way did you move your `index.php` file? Usually that file is in the public folder so if you didn't change your mamp  you would have to use `localhost:8888/public` anyway  
> **username_0**: Thanks @RobinSchambach. I ended it up fixing the issue by replacing the /craft folder with the original installation folder and then just replacing /craft/templates and /craft/plugins from the existing site.  
> **username_2**: Would you mind adding what worked for you as an official answer?  It might end up helping someone in the future.  

---

## 1 answers

### Answer by username_0 on 2017-11-15. Score: 2

I ended it up fixing the issue by replacing the /craft folder with the original installation folder and then just replacing /craft/templates and /craft/plugins from the existing site.


---

