1and1 Help Centre Categories

print article

Find the Full Path (Folder Structure) to a Webspace

Find out how to access information about the folder structure via the 1&1 Control Panel

There are a different ways to full path to your webspace to use in scripts, this depending on your package. The first method below is for Linux and Microsoft hosting packages. Some package-specific alternate methods are explained afterwards.

Step 1
Log in to your 1&1 Control Panel and select the relevant package.
Step 2
From the Domains panel, click on Manage Domains.
Domains > Manage Domains
Domains > Manage Domains

Step 3
Click the arrow icon next to the domain in question to open a list of domains options. Domain Overview
Domain Overview
Step 4
Select Edit Destination from the list of options. Domain Overview
Domain Overview
Step 5
Look for Complete web server path. Here is the full folder structure for that domain. Domain Destination
Domain Destination

For Linux packages, log in to your server via SSH (Secure Shell) and run the pwd command. This command will output the folder structure down to the current folder. Be sure to cd (change directories) to the folder you want before running this command.

For Microsoft packages, use the Server.MapPath() function for your ASP and .NET scripts. Running the Server.MapPath function without any parameters will output the full path to the folder where the script is saved. Specify a parameter for the function such as savePath = Server.MapPath("uploads") which will output the full folder structure to the folder named uploads contained in the same folder where the script is saved.

For additional information, you may want to reference: