If you have used WSS and SPS before, then you have probaby created a "Team Site" or
something under the "sites" folder. When you do that you get a URL like this:
http://myportal/sites/myteamsite
But what if you want something like this?
http://myportal/teamsites/myteamsite
It turns out this is fairly simple. To get started, open Windows SharePoint Services
Central Admin. In the "Virtual Server Configuration" section click the "Configure
virtual server settings" link. In the virtual server list, click the server that you
want to configure. (Most people only have "Default Web Site" here.)
Now you are on the "Virtual Server Settings" page. In the section called "Virtual
Server Management", click on "Define managed paths".
You should see this screen:
Scroll down to the bottom of the screen to the "Add a New Path" section and type "/teamsites".
Click OK and you are done. You should now be able to create sites under /teamsites
(or whatever other path you defined.)
Read: How To Add a New Managed Path to Windows SharePoint Services