I get the below issue when i restore SharePoint Site on PowerShell. I am trying to Restore my site in Sharepoint 2019 Management Shell, but I get this error:
"Restore-SPSite : The target site collection is a host header-based site collection, but a corresponding web application has not been specified. Please use the -hostheaderwebapplicationurl parameter and specify the web application."
The Command:
Restore-SPSite -Identity myURL -Path "Backup Path" -Force
I tried to use -hostheaderwebapplication parameter but still, the issue is not solved.
Sharepoint 2019 Management Shell is run as administrator.