Customizing the Tokens in Friendly URLs
By default, the portal areas are represented by the following
tokens in friendly URLs: mypage, community, user, directory, document,
and gw. However, the portal administrator can change these tokens
to fit the needs of the company.
- Open the following file in a text editor: Install_Dir\bea\alui\settings\portal\FriendlyURLs.xml.
For example: C:\bea\alui\settings\portal\FriendlyURLs.xml or /opt/bea/alui/settings/portal/FriendlyURLs.xml
- Edit the <key> values as desired.
You can change the following tokens:
- mypage — represents a My Page object
- community — represents a community object
- user — represents a user
- directory — represents a Knowledge Directory folder
- document — represents a document
- gw — represents gatewayed object
For example, you might change the token for directory to
“folder” as in the following code: <FriendlyURLMapping>
<key>folder</key>
<classId>17</classId>
</FriendlyURLMapping>
This would mean that users could access Knowledge Directory
folders through a friendly URL in the format: http://portal.company.com/portal/server.pt/folder/object_name/[object_id]
- Disabling Friendly URLsBy default, you can direct users to portal areas with simple URLs, referred to as friendly URLs. However, you can disable friendly URLs for your deployment if you want to.
- Friendly Gateway URLsGatewayed content is displayed with an URL that makes it easy to read and extract information from.