To change the way URLs are handled by the Web clipping portlet,
you can specify rules for URL rewriting. The regular expression syntax for
specifying URL rewriting rules is based on the Perl standard.
Perform the following steps to change rules for URL rewriting:
- Click Modify rules for URL rewriting. Do one of the following:
- Select Use standard URL rewriting to ensure
that URLs in links within the Web clipping portlet are modified to point to
the portal, rather than the host originally targeted by the link.
- Select Use rules to exclude URLs from rewriting to
specify rules that are used to identify which URLs will not be altered. These
links will not go through the portal. For example, a rule of ".*\.gif" will
match any URL that ends in ".gif", while a rule of ".*ibm\.com.*" will match
any URL containing "ibm.com".
- Enter a rule in the appropriate Rule field, and click Add.
Repeat the process for as many rules are you require. Rules are used to identify
which URLs will not be affected by URL rewriting.
- The following URLs will not be modified Enter one
or more rules to identify URLs whose content will be retrieved from the original
host. These links are opened in the same window.
- The following URLs will not be modified and will be opened
in a new window Enter one or more rules to identify URLs whose
content will be retrieved from the original host and will be displayed in
a new window. For example, a rule of ".*ibm\.com.*" will match any URL containing
"ibm.com".
- To delete a rule, select it from the list, and click Delete.
Note: Any Perl 5 based regular expression can also be used
for the rule.
- Click OK to continue or Cancel to
quit.