Support

Site Restoration

#37473 Multisite restoration broken

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
7.4
CMS Type
WordPress
CMS Version
6.0.1
Backup Tool Version
7.6.10
Kickstart version
7.1.2

Latest post by nicholas on Monday, 25 July 2022 02:14 CDT

adrienlabigne

Hi !

I used Akeeba & Kickstart to migrate a multisite Wordpress with a lot of content (26Go) to a new host, with same domaine name (DNS modification not made for now).
Unfortunatly, after restoration sucessfull, I see that every link are broken, with no idea why.

The link URL is the prod, working, so you'll need to do a hosts modification :
83.166.133.13   ir.heaj.be


In the website URL I provide, you can click on every link in menu, and see a web error 404.
The link in menu are correct, the page too.

I really don't understand what to do...

Thanks in advance

nicholas
Akeeba Staff
Manager

> with same domaine name (DNS modification not made for now).

This combination is antithetical to the site working. Restoring with the same domain name as the original site means that no change is made to the links. However, if you have not modified the DNS then the domain name to your site does not resolve to the new host (where you restored your site), therefore the links won't work as they are absolute, with the domain name which does not resolve yet.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

adrienlabigne

Hi Nicholas,

That surprises me, because I have just migrated another site (multi site also), ecoweb (a ticket is opened for), and I do not have these problems, whereas the method, location of the server of origin and destination are identical with this one.

I have my hosts file modified, so it is this one that does the DNS resolution.

nicholas
Akeeba Staff
Manager

There is something you are not explaining the right way. If you have not set up the DNS to point to the new server AND you are not using a hosts file for local DNS resolution to the new server's IP address you cannot type in the site's domain name and magically have it served from the new server. It's a fundamental concept of how the Internet (and any TCP/IP network, really) works.

Let's backtrack a bit.

What I understand you are asking me is why you cannot access the new site using the exact same subdomain and domain name as the old site on the new server if you don't use the hosts file on your local computer. The answer to that is what I already said, it's how Domain Name Service (DNS) works since its inception in the 1970s.

If you meant something different, please do clarify so I can help you better.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

adrienlabigne

Hi Nicholas,

Of course, I know the DNS principle, that's why a tell you to modify your hosts file ;)
So I access the new host & site with this modification on my hosts file.

nicholas
Akeeba Staff
Manager

Okay, I had trouble understanding what you were saying.

Your problem is that you either do not have a .htaccess file OR your host does not support .htaccess files. This is required for permalinks like the ones you have on your site to work.

When you restore a site and go through the entire restoration process the .htaccess is restored as well. If you did not go through the entire restoration it will be left as htaccess.bak, rename it to .htaccess for your site to work.

If you do have a .htaccess file then your host does not allow using .htaccess files or does not support URL redirections. Please contact your host in this case.

Important! All files whose name starts with a dot, like .htaccess, are hidden on most server operating systems. You will need to have your FTP/SFTP client or hosting control panel file manager display hidden files to see if it does exist.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

adrienlabigne

Hi,

That was that !

That's the first time I got a problem like this with restoration, with 20+ restoration history.
Is this happend frequently ?

 

Thanks for your help, as usual !

nicholas
Akeeba Staff
Manager

It is an extremely uncommon occurrence. It usually happens on servers where the FTP user and the user the web server runs under are different and these are extremely rare the past decade. This may lead to a situation where the .htaccess file cannot be replaced during the archive extraction phase and also impossible to update during the site restoration phase. Having you manually remove the file and regenerate it works around this problem.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!