How To Use Rewrite Rules for Friendly Urls in a Multi-Site Scenario, and When Not All Assets Are Subject to Friendly Urls (Doc ID 1568282.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle WebCenter Sites - Version 11.1.1.8.0 and later
Information in this document applies to any platform.

Goal

We are implementing friendly URLs for pages with the format,

<host>:<ip>/cs/Satellite/<siteName>/<localeName>/<pageFriendlyUrl>

Two issues:

1.  There will be two sites served by the same WebCenter Sites system:

<host>:<ip>/cs/Satellite/Site1/en/Home  pointing to www.site1.com/en/Home
and
<host>:<ip>/cs/Satellite/site1/en/Home  pointing to www.site2.com/en/Home

where <host>:<ip> will be the same for both the above cases. In this above case, how will we write the rule in the webserver, since <hostname>:<port>/cs/Satellite? can either point to site1.com or site2.com based on the site in the url?

2. We are implementing friendly urls only for page assets and for other assets like news & some other assets use typical long form URL generated using <render:gettemplateurl> without using the assembler, for example:

http://site1.com:8080/cs/Satellite?c=Content_C&cid=1368342961314&locale=1368342930648&p=1368342948815&pagename=Site1%2FSite1Layout

In such cases, it will fail if we make <host>:<ip>/cs/Satellite/Site1/ point to  www.site1.com.
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms