Lithops Software
 

How to find unused files on website

When you develop your own website it is difficult to keep in mind a list of all used files, and very often website contains a lot of waste, orphaned files not linked with the other html files and not necessary for proper working of your website.
Using File lists and Orphaned files Tools you can create three file lists: List of files accessible from the starting address, List of all files in website directories, and List of orphaned files (present in the List 2, but absent in the List 1).

To create a List of files accessible from the starting address (List 1):

  • Choose Tools > File lists and Orphaned files.
  • Select http: (for websites) or local (for web projects on local computer) option button
  • Enter website starting address
  • Click the Recreate list button.
    HTML Link Validator scans all links and creates a list of all linked files.

    To create a List of all files in website directories (List 2):

  • Choose Tools > File lists and Orphaned files.
  • Select http: (for websites) or local (for web projects on local computer) option button
  • For local website project simply enter a directory of web site project For remote websites you should enter ftp information: ftp server name, login, password, and, if necessary, initial remote directory (should point to the directory with html files, usually / or www)
  • Click the Recreate list button.
    HTML Link Validator reads initial directory and all subdirectories and creates a list of all found files.

    To create a List of orphaned files (present in the List 2, but absent in the List 1):

  • Choose Tools > File lists and Orphaned files. List 1 and List 2 should be created
  • Click the Recreate list button.
    HTML Link Validator creates a list of files present in the List 2, but absent in the List 1. All these files are not accessible via http from the starting address. This list allows you to select waste, orphaned files which can be deleted. Be care when deleting files from website, if the file is not accessible via http: this does not necessary means that this file is not used. For example, website can contain configuration files (.htaccess), include files (*.inc) and other files not "visible" for http access, but necessary for proper website working.