Differences

This shows you the differences between two versions of the page.

Link to this comparison view

file_transfer_protocol_ftp [2011/08/27 03:31]
matthew
file_transfer_protocol_ftp [2011/08/27 03:36] (current)
matthew
Line 54: Line 54:
 When setting up your FTP client to connect to your server, you may be presented with more options than you need to worry about. This capture is from Transmit, configuring a new server connection. Beginning from the top, give your connection a name; the name of your website will usually suffice. When setting up your FTP client to connect to your server, you may be presented with more options than you need to worry about. This capture is from Transmit, configuring a new server connection. Beginning from the top, give your connection a name; the name of your website will usually suffice.
  
-Next, provide the server address. Web-browsers usually access sites using an <code>http://</code> address. For example, look to your address field now, and you should see that you’re reading my website from <code>http://theturninggate.net/etc</code>. Typically, when accessing your site via FTP, you would replace this with an ftp:// address. When I log into The Turning Gate, for example, I would set my server address to ftp://theturninggate.net. Your host will usually tell you the server address along with your login information, but it’s easy enough to guess that it’s your domain name, or ftp:// and your domain name.+Next, provide the server address. Web-browsers usually access sites using an %%http://%% address. For example, look to your address field now, and you should see that you’re reading my website from %%http://theturninggate.net/etc%%. Typically, when accessing your site via FTP, you would replace this with an %%ftp://%% address. When I log into The Turning Gate, for example, I would set my server address to %%ftp://theturninggate.net%%. Your host will usually tell you the server address along with your login information, but it’s easy enough to guess that it’s your domain name, or %%ftp://%% and your domain name.
  
 User name and password are self-explanatory. User name and password are self-explanatory.
Line 69: Line 69:
 The “root” of your server is where users are directed when they input your web address into their browser. The front page of your website should always be located in the root. The “root” of your server is where users are directed when they input your web address into their browser. The front page of your website should always be located in the root.
  
-When you first log into your server, you may be presented with a number of oddly named folders. Your first task is to locate the root, which will usually be in a folder named /httpdocs/, /htdocs/, /www/ or /public_html/. Again, consult with your host’s documentation if you have difficulty locating the appropriate folder.+When you first log into your server, you may be presented with a number of oddly named folders. Your first task is to locate the root, which will usually be in a folder named ''/httpdocs/''''/htdocs/''''/www/'' or ''/public_html/''. Again, consult with your host’s documentation if you have difficulty locating the appropriate folder.
  
-When a visitor accesses your site by URL, www.domainname.com, they will automatically be directed to your index file — usually either index.html or index.php, depending on which is present. It’s important to understand that:+When a visitor accesses your site by URL, ''%%www.domainname.com%%'', they will automatically be directed to your index file — usually either ''index.html'' or ''index.php'', depending on which is present. It’s important to understand that:
  
-www.domainname.com = www.domainname.com/index.html+''%%www.domainname.com = www.domainname.com/index.html%%''
  
-If no index.html (or index.php) file is present at the root, visitors will receive a File Not Found error when accessing your domain name, www.domainname.com, even if there are other files present at the root.+If no index.html (or ''index.php'') file is present at the root, visitors will receive a File Not Found error when accessing your domain name, ''%%www.domainname.com%%'', even if there are other files present at the root.
  
-For any other file to be accessed at root, the file name must also be supplied. Example, www.domainname.com/about.html or www.domainname.com/contact.html.+For any other file to be accessed at root, the file name must also be supplied. Example, ''%%www.domainname.com/about.html%%'' or ''%%www.domainname.com/contact.html%%''.
  
 ===== Folder Structure ===== ===== Folder Structure =====
Line 83: Line 83:
 Just like on your desktop, the contents of your web server should be organized into folders. Folders might contain periphery files for your site, such as Javascripts, CSS files or images used in your site design. Folders can also be used to organize your site’s pages and resources. A folder might contain a web photo gallery, for example. Just like on your desktop, the contents of your web server should be organized into folders. Folders might contain periphery files for your site, such as Javascripts, CSS files or images used in your site design. Folders can also be used to organize your site’s pages and resources. A folder might contain a web photo gallery, for example.
  
-Folders can sit in your root, alongside your index.html file, or can sit as sub-folders within a folder. To access folders, simply add the path to your domain. If you have a gallery folder named “gallery” sitting in your root, then you would access it in a web-browser via the address www.domainname.com/gallery/.+Folders can sit in your root, alongside your ''index.html'' file, or can sit as sub-folders within a folder. To access folders, simply add the path to your domain. If you have a gallery folder named “gallery” sitting in your root, then you would access it in a web-browser via the address ''%%www.domainname.com/gallery/%%''.
  
 The same file rules for the root apply to folders. Thus: The same file rules for the root apply to folders. Thus:
  
-www.domainname.com/gallery/ = www.domainname.com/gallery/index.html+''%%www.domainname.com/gallery/ = www.domainname.com/gallery/index.html%%''
  
 Sub-folders can be nested inside folders to an infinite depth, and are accessible by extending the path, like this: Sub-folders can be nested inside folders to an infinite depth, and are accessible by extending the path, like this:
  
-www.domainname.com/gallery_index/gallery01/+''%%www.domainname.com/gallery_index/gallery01/%%''
  
 Ultimately, your folder structure (a.k.a. directory structure) will determine how your website menu should be laid out. Depending on where you place your pages and photo galleries, your menu will need to point to each relevant file at its respective location. Ultimately, your folder structure (a.k.a. directory structure) will determine how your website menu should be laid out. Depending on where you place your pages and photo galleries, your menu will need to point to each relevant file at its respective location.
Print/export