Here is my basic problem, then below it I'll explain how I think I ended up with the problem. Looking for some pretty specific instructions on how to fix it, I'm not a programmer.
I specified a Portal number of 22 when creating a portal in DNN7. Now, Host>Site Management displays a Portal ID of 9 which it would have been sequentially had I not specified 22 in the portal creation process. But, Admin>Site Settings displays the correct Portal ID of 22. None of my images appear, and while I can create links to files using the links module, none of the links work when clicked.
I set up a new install of version 7 DNN. I wanted to recreate and move content from a portal in version 6 to version 7. So, I set up a new portal in 7 and when doing so manually set the portal ID to 22 so it would match the portal ID in version 6. I wanted to do that because on this portal I have a lot of links set up to files using the links module probably at least 10 different times inside the portal, and I wanted to export each of the links module content from version 6 and import the content in version 7, and not have to change any of the relative links that get to the linked files in /Portals/22/xxx. After recreating the whole site when I clicked on any link in any links module it can't find file /portals/22.xxxx. I thought it was a Links Module problem, but eventually figured out none of my picture files, like the site logo, were appearing either. So, after hours of looking, I discovered that Host>Site Management shows the portal number of 9 for the site, which is what it should have been had I not specified a portal number in the creation process. In Admin>Site Settings the "Home Directory" is /Portals/22. That explains why I can get at the file system when I'm in the links module, and I think why when I click on the link the incorrect Host>Site Management portal ID is making it look somewhere else when the request comes back in over the internet, even though the URL shows it trying to get the file from portal 22.
I want the site to be Portal 22. Can anyone give me specific instructions on how to fix the Host>Site Management portal ID from 9 to 22? I'm guessing that's somewhere in SQL, and if so, I'd need to know where in the SQL tables to go to fix it because I'm not a programmer, and while I have been using DNN since version 1, I'm just a volunteer helping a non-profit with their sites.
Thanks in advance!