# Fixing broken websites (local and online, redirect issue)

**URL:** <https://community.localwp.com/t/fixing-broken-websites-local-and-online-redirect-issue/34259>\
**Category:** Support\
**Tags:** windows-10\
**Created:** [November 17, 2022, 9:15am UTC](https://community.localwp.com/t/fixing-broken-websites-local-and-online-redirect-issue/34259 "2022-11-17T09:15:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxson](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@maxson](https://community.localwp.com/u/maxson)\
**Post date:** [November 17, 2022, 9:15am UTC](https://community.localwp.com/t/fixing-broken-websites-local-and-online-redirect-issue/34259/1 "2022-11-17T09:15:43Z")

</div>

### Issue Summary

I tried to move my local website and go online / replace my old website with it. The local and the online website did break both and “migrated” in some weird way to only one **local** (-\> it was only available while local website was turned on) website (I used the plugin All-in-One-Migration because I couldn’t find another way to do it). I had to delete my old database and install wordpress newly on my domain provider. Now I can’t enter my local website via the localwp program anymore because it still redirects to my real domain - even after replacing every local folder with a backup I made earlier.

By the way, I already contacted the support team of the plugin All-In-One-Migration but they couldn’t help me.

#### Troubleshooting Questions

- How can I get my local page back to work? _I can’t enter the testing admin panel because of the domain redirect issue._

- How can I transfer my local site safely to my newly created webpage without breaking it again? _I don’t have any backups of my old website, its gone forever - but it doesn’t matter if I can transfer the local page to the online page._

#### Replication

You can replicate this issue step by step.

1. Having an online website.
2. Having a localwp website.
3. Install [All-In-One Plugin](https://wordpress.org/plugins/all-in-one-wp-migration/) on both sites
4. Exporting the local site using the plugin
5. Importing the All-In-One file to the new website
6. Change everything the plugin is mentioning (database, media, plugins, etc.)
7. Done.

Now my local page was also my online page / my online page was also my local page. If you entered the real domain (xx-xxx) you got redirected automatically to the testing (testing-xx-xxx) domain. There also wasn’t a possiblity to view the page if localwp wasn’t running.

#### System Details

- I am using the local version 6.4.3+6116

- I am using Windows 10 Pro, 64 bit

- I don’t know if the logs are helping but I downloaded them today.  
[local-logs.zip](https://community.localwp.com/uploads/short-url/kptzMvGFZg7L3mkCE5MplAXNfM9.zip) (56.0 KB)

I am thankful for every help, because I don’t want to loose all of my progress of the website.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [February 15, 2023, 9:16am UTC](https://community.localwp.com/t/fixing-broken-websites-local-and-online-redirect-issue/34259/2 "2023-02-15T09:16:07Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
