Why Web Pages Appear in the Wrong Location after Uploading to my Website?
If your are a new web designer, you may face a common problem after uploading your web page to your web server. The problem is that the web page appear in the wrong location on your website, and will not be accessible when you type its address in the browser address box.
There are two ways to create a web page at your website. You can either create the web page on the server using the server html editor application, or you can create a web page on your home computer and then upload it to your web server using FTP (file transfer protocol) software.
The first method is rarely used, because it is not very practical. It lacks the flexibility of of home computer. The second method is widely used. With the use of ftp software, you will be able to upload your webpage to your server.
The problem is when you ftp to the server, and you are granted access you end up on the top directory (/) which hosts all your files website and others. You get a screen with all of your folders, sub-folders, and single files under the main (/) directory.
Now you get a link at the top of the screen that says upload file. When you click on the link, a box will open that lets you search for the file you want to upload from you home computer hard disk.
When you choose the file to upload to your website and continue with the step by step process, you end up successfully with the file on your web server storage in the top directory.
Please note that the term directory and folder are used interchangeably, but refer to the same object. Now your file is in the top directory (/).
Now you will be surprised that, you can not access the uploaded file from the internet whatever you type in the URL box. The reason is when you type the URL of your website, you will access the (/www) directory which is the top directory of your website.
All the web pages of your website are in the (/www) or in a sub-directory of (/www).
Here is the solution to this problem:
When you get access to the top directory, you click on the /www folder icon in the list. Now you are in the website home directory (/www/) where your home page is.
Looking at the top, you notice it says the current directory is such and such. So, when you hit the upload link, make sure the the current directory is where you want to upload the webpage.
For example, if you want to upload a web page to the sales sub-directory, you click on the /www and then on the /sales folder icon in the /www list.
This is where you end up: /www/sales as your current folder. Now you click the upload link to have your web page end up in the correct folder /www/sales/.
In summary, your web page will end up in the current directory of your web server space. The initial directory to a get once accessing your account is the top one.
After that you can change the current directory to any sub-directory under you website directory, where you need your web page to end up.