![]() ![]()
|
URL Substitution
URL substitution (in combination with host substitution) makes it possible to fully change the URL that a wireless handheld requests without reconfiguring the handheld.
If a wireless handheld is configured to initially send all of its HTTP requests to localhost/home, where localhost is Good Intranet Server, the server can be configured to forward the request to a new location - differenthost/differenthome.
For example, with URL substitution, you can set Good Intranet Server to map the path in a URL that follows the host name to a different (substitute) path that you also specify.
- urlsubst.enable true
urlsubst.sub localhost/intro.html localhost/demo/docdemo.htmlThe first line in the example enables URL substitution. The second line specifies that requests to localhost/intro.html are to be redirected to localhost/demo/docdemo.html.
Important: URL substitution is applied before host-name substitution. Therefore, to map the URL http://localhost/intro.html to http://www.gadocs.com/demo/docdemo.html, you need to keep localhost as the host name in URL substitution, as shown in the example above, and configure host-name substitution to map localhost to www.gadocs.com, as described in Host SubstitutionYou can specify multiple path substitutions by entering pairs of URLs as a space-separated list. For example:
urlsubst.sub localhost/intro.html localhost/demo/docdemo.html \
www.abcdef.com/pubs.html www.abcdef.com/engineering/techdocs.htmlIn this example, localhost/intro.html is mapped to localhost/demo/docdemo.html and www.abcdef.com/pubs.html is mapped to www.abcdef.com/engineering/techdocs.html.
Properties for URL substitution include:
|
Good Technology www.good.com Voice: 1 866-7-BE-GOOD sales@good.com |
![]() ![]()
|