• I originally set up a WordPress site in yeshar.co.uk/kneif, and then moved it to kneif.info, which is defined as an add-on domain in the folder /public_html/kneif.info of my yeshar.co.uk domain.

    As all links were pointing towards the original site located at yeshar.co.uk/kneif, I tried to access the dashboard, but was redirected towards yeshar.co.uk/wp-admin (the original site) instead of kneif.info/wp-admin (the new site). After finding out that I needed to replace the links in the ‘options’ table of my database (in the columns ‘siteurl’ and ‘home’), I managed to get into the dashboard and used Velvet Blues to update the URLs. A large number of URLs were updated, however now the site isn’t working properly. The slider on the homepage isn’t displayed, the embedded audio track isn’t working, and whenever I click on a link I get a ‘500 Internal Server Error’. The same behaviour occurred when I previously tried running interconnectit’s Search-Replace-DB script on the site.

    Why is everything that I try causing this behaviour? What can I do to fix it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jkneif

    (@jkneif)

    I just replaced all instances of https://kneif.info with https://www.kneif.info, and at first it seemed to work. If I selected a members name from the main menu, it would take me to the correct page, and the albums for that member were displayed correctly. But if I visited the ‘members’ page, the links on there were pointing towards the old site, https://yeshar.co.uk/kneif. I ran another search & replace, to replace all instances of yeshar.co.uk/kneif with kneif.info, and suddenly all the images have disappeared again!

    What on earth is going on here??? ??

    Does anyone get answers here?

    Thread Starter jkneif

    (@jkneif)

    yesw, it seems to be difficult to get any answers on this forum, expect from some of the developers (I found Tobias B?thge, the developer of TablePress, to be very helpful, as well as the developers of the MH Magazine theme).

    In the end I found out myself what the problem was – file indexing for the server was set to a maximum of 2,000 files per directory, so that FileZilla didn’t only just display that amount, but also it didn’t download more than 2,000 files per folder when I downloaded the whole site, which led to a lot of broken links when I re-uplaoded it to a different directory. I solved the problem by using the same directory instead of moving the site, and simply defining that directory as the one for my add-on domain (although I found out that I could have also downloaded the complete site by using the file explorer in cPanel to zip it first). After that, the only other thing I had to do was to change two entries in the .htaccess file to fix ‘Error 500 Internal Server Error’ messages that I was getting, and since then everything has been working fine.

    See here for a detailed explanation.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Site broken after moving it and replacing links’ is closed to new replies.