Enabling vanity URL support after migration | HCL Digital Experience
In a new HCL Digital Experience 8.5 installation, vanity URL support is enabled. However, if you upgrade your Portal from a previous version to Version 8.5, vanity URL support is disabled. You can enable and disable vanity URL support as required by using a portal configuration task.
About this task
- Enabling vanity URL support
-
To enable vanity URL support, you use the configuration task enable-vanityurl-support. This task sets a new custom property in the Resource Environment Provider of the WP Configuration Service. The property name is vanityurl.support.enabled. When you run the configuration task, the property is set to the value true.
Note: It is mandatory to enable managed pages to have vanity URLs enabled. If managed pages support is not enabled, the task enable-vanityurl-support fails. In this case, run the task enable-managed-pages first. - Disabling vanity URL support
-
To disable vanity URL support, you use the configuration task disable-vanityurl-support. This task deletes the custom property vanityurl.support.enabled from the Resource Environment Provider of the WP Configuration Service. If the portal then receives a request to serve a vanity URL, it gives a 404 return code.
- Syntax
- You call these configuration tasks as follows:
- AIX®
- Enable: ./ConfigEngine.sh enable-vanityurl-support -DPortalAdminPwd=password -DWasPassword=password
- HP-UX
- Enable: ./ConfigEngine.sh enable-vanityurl-support -DPortalAdminPwd=password -DWasPassword=password
- IBM® i
- Enable: ConfigEngine.sh enable-vanityurl-support -DPortalAdminPwd=password -DWasPassword=password
- Linux™
- Enable: ./ConfigEngine.sh enable-vanityurl-support -DPortalAdminPwd=password -DWasPassword=password
- Solaris
- Enable: ./ConfigEngine.sh enable-vanityurl-support -DPortalAdminPwd=password -DWasPassword=password
- Windows™
- Enable: ConfigEngine.bat enable-vanityurl-support -DPortalAdminPwd=password -DWasPassword=password
- z/OS®
- Enable: ./ConfigEngine.sh enable-vanityurl-support -DPortalAdminPwd=password -DWasPassword=password