Tuesday, August 2, 2011

Oracle WebCenter Interaction: How to Create Vanity URLs, and Add Communities to the Knowledge Directory

Issue #1
WebCenter Interaction came out with "friendly URL's" in version 6.5 if memory serves me.  They went from awful long, to moderately long.
A typical URL in our 10.3 environment looks like this:
http://intranet.com/portal/server.pt/community/human_resources/207

While that URL is acceptable for most folks, from time to time you'll have someone within your organization that wants a shorter URL such as:
http://intranet.com/hr

Issue #2
WebCenter Interaction community URL's are in a format which prevents the WWW Content Upload tool from creating a new card in the Knowledge Directory.  Within search preferences users have the ability to turn off Communities, Community Pages and Portlets so it might be difficult for these folks to find this content.

Additionally if you use Analytics you should be familiar with Abandoned Searches which is a number for each search query that is incremented when a search is performed but a user doesn't click on a document. Key word in that sentence being "document", because if a user clicks on any other object type (community, page, portlet, user, collaboration item, publisher item, etc..) it still counts as an abandoned search.  So while this number is almost completely irrelevant due to this glaring flaw, you might be able to earn some points with your boss if you could lower your abandoned % by getting a user to click on a link to a community from within the KD.

What to do?!



Solution:

While the solution to this issue is simple and needs little explanation, I figured I'd write this blog post as a kick in the butt to folks that haven't bothered to do it yet.

If you are running IIS all you need to do to address both the issues above is to create a folder in your \Inetpub\wwwroot with the short name you want as your vanity URL.  So if you want your URL to be http://intranet.com/hr then you would create a folder called "hr" then into it you'd toss an HTML redirect file.
You'll likely have a redirect file at your wwwroot so copy that and just swap out the URL.

My redirect looks like this, although there are a bunch of other ways you could do it:
<html><head>
<script>window.location='/portal/server.pt/community/human_resources/207';</script>
</head>
<body>redirecting...</body>
</html>

Now that you've created a more normal URL you will notice that it can be accepted by the WWW Content Upload tool!

No comments:

Post a Comment