Defined in WinHTTrack options Build > Local structure type
, click the Options button.
From the command-line use -N <structure>
%r
protocol name (eg: http)%h
Host name (eg: www.someweb.com)%p
Path [without ending /] (eg: /someimages)%n
Name of file without file type (eg: image)%N
Name of file, including file type (eg: image.gif)%M
MD5 URL (128 bits, 32 ascii bytes)%Q
MD5 query string (128 bits, 32 ascii bytes)%q
small MD5 query string (16 bits, 4 ascii bytes)%s?
Short name (eg: %sN)%t
File type (eg: gif)%[param]
param variable in query string%[param:before:after:empty:notfound]
advanced variable extractionparam
: parameter namebefore
: string to prepend if the parameter was foundafter
: string to append if the parameter was foundnotfound
: string replacement if the parameter could not be foundempty
: string replacement if the parameter was emptyNew variable in version 3.40?
http://forum.httrack.com/readmsg/12712/index.html?pid=12708
Another option is to use the user-defined build structure to force all types to be 3-characters long: -N "%h%p/%n%q.%st"
TODO - Test %st variable
%h%p/%n%[id:-:::].%t
Use the regular name of files, and if "id" is found in querystring then append "-<id_value>" to name, followed by file extension.
example.com/page.php?id=news > example.com/page-news.html