Sunday, December 18, 2011

Change the Portal default Context root/URI

Portal Default Context root (/wps) can be changed after the installation for websphere portal and Portlets.

The below context roots cannot be changed.

  • /wps_semanticTag
  • /portal_dojo
  • /mum
  • /EnhancedTheme
  • CNHTheme
  • /dp6/

1)  Stop the Web Sphere Portal Server. 
2) log on to the portal server and navigate to {wp_profile_root}/ConfigEngine/properties
3) Make a backup of wkplc.properties. and edit the original wkplc.properties file
4) change the value of WpsContextRoot property from wps to the value you want to change it to.
see the screenshot below.






save and close the file.

Open Command Prompt and go to {wp_profileroot}/configEngine directory and run the following command


  • UNIX™: ./ConfigEngine.sh modify-servlet-path -DPortalAdminPwd=password -DWasPassword=password
  • Windows™: ConfigEngine.bat modify-servlet-path -DPortalAdminPwd=password -DWasPassword=password 
after the command is run succesfully you should see some thing like the below screenshot in your command prompt.

 
Start your portal server and you can asses your portal using the new context root instead of wps.  in my case its /venkatportal.


 

Run the following steps if you want to change the context root for the portlets as well.  




  • UNIX: ./ConfigEngine.sh modify-servlet-path-portlets -DPortalAdminPwd=password -DWasPassword=password
  • Windows: ConfigEngine.bat modify-servlet-path-portlets -DPortalAdminPwd=password -DWasPassword=password