{"id":"416","content":"
The purpose of URL substitution is to replace one or more parts of a URL with new parts. You can create rules to\r\n replace parts of the URLs.<\/p>\r\n\r\n
The rule you created will appear in the URL Substitution box.<\/p>\r\n\r\n
To remove the rule you created, in the list of URL Substitution rules, select the URL, and then\r\n click Remove<\/b>.<\/p>\r\n\r\n
To change the rule you created, in the list of URL Substitution rules, select the URL\/Replace\/With<\/b> check\r\n box, depending on what you would like to change in a rule, type a new value, and then click Ok<\/b>.<\/p>\r\n\r\nRemoving certain parts of the URL<\/h3>\r\n\r\n
To remove Session IDs in the URL http:\/\/www.server.com\/phpBB2\/viewforum.php?f=3&sid=&sid=60265e8804db29c872ffb31eb069f5ba<\/b>,\r\n we need to remove the&sid=60265e8804db29c872ffb31eb069f5ba<\/b> part and keep only http:\/\/www.server.com\/phpBB2\/viewforum.php?f=3<\/b>\r\n<\/p>\r\n\r\n
create the following rule:<\/p>\r\n
According to this rule, Offline Explorer Pro will remove all Session IDs from all URLs to download.<\/p>\r\n\r\n
To relocate parts of the URL http:\/\/www.srv.com\/file.asp?param1=**;param2=*<\/b>, create the following rule:\r\n<\/p>\r\n According to this rule, the URL http:\/\/www.srv.com\/file.asp?param1=;param2=<\/b> will be changed to http:\/\/www.srv.com\/abc\/def\/file.asp<\/b>\r\n<\/p>\r\n\r\n Offline Explorer Pro supports up to three parts of the URL to be relocated: *<\/b>, **<\/b> and ***<\/b>.\r\n Place *<\/b> as the last part. Parts ***<\/b> and **<\/b> should be used before *<\/b>.\r\n<\/p>\r\n\r\n Example<\/b><\/p>\r\n\r\n To download the print version of www.washingtonpost.com create the following rule:<\/p>\r\n According to this rule, the resulting URL will be:\r\n http:\/\/www.washingtonpost.com\/ac2\/wp-dyn\/A8403-2004Feb3?language=printer\", and Offline Explorer Pro will\r\n download the print version of web pages.<\/p>\r\n\r\n Macros are short pieces of programming code used to automate performing specific tasks. Macros are used to avoid\r\n repetitive actions when creating URL substitution rules<\/p>\r\n\r\n For example, you can replace 11*.gif<\/b> with {:0day}.gif<\/b>.<\/p>\r\n\r\n Note:<\/b> Enumerating Macros, such as {:1..10}, {:server}, {:dir}, {:filename},<\/b>vcannot\r\n be used for creating URL substitution rules<\/p>\r\n\r\n The following Macros will use Referrer URL parts {:refserver}, {:refdir}, {:reffilename}<\/b><\/p>\r\n\r\n For example: In URL http:\/\/www.srv.com\/file.asp Replace ? With ?fromserver={:refserver}<\/p>\r\n
Downloading print versions of web pages<\/h3>\r\n\r\n
\r\n
Using Macros in URL substitution rules<\/h3>
What are Macros?<\/h4>\r\n\r\n
See also:<\/h4>List of Macros<\/a>\r\n"}