I tried to run the same commands as in here -https://technet.microsoft.com/en-us/library/cc263165(v=office.14).aspx .
$template = Get-SPWebTemplate "STS#0"
New-SPSite -Url "http://web-application-name/sitecollection1" -OwnerAlias "domain\administrator" -Template $template
I am getting the following error: New-SPSite : A site collection could not be created as the provided managed pat h does not exist. Change the URL to use an existing managed path or create the missing managed path prior to calling this command.
What does this error mean? What am i missing?