Question


Accenture
IN
Last activity: 24 Apr 2017 2:15 EDT
Custom url required for login page
Hi,
My Current url for login page is http://xyz/prweb/PRServlet . Where xyz is the server name. Now the Client don;t want the /prWeb/PRServlet in the login url . The new url should look like http://xyz . What is the best way to implement this ?
Venkatesh
***Updated by Moderator: Marissa to update categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!


Pegasystems Inc.
IN
Hi Venkatesh,
Below thread will provide the detailed explanation for your query.
https://collaborate.pega.com/question/custom-url-login
Thanks,


Accenture
IN
Hi Supraja,
Thanks for providing the related post. The post explains the way to the change the PRServlet name to custom . So the end url will still have the format of "/<context_root>/MyCustom" . My requirement is not to have the /<context_root>/MyCustom in the url.
Venkatesh
-
Yuliya Yakubenko Ana Paula Pizani Sampaio
Accepted Solution


Pegasystems Inc.
US
Hi Venkatesh,
In a Server we can deploy n number of web applications and each web application can be differentiated with its unique context-root. So this context root is mandatory in your URL i.e. if you want to deploy an application X which has context path (contextpath1) in domain (mydomain) then it can be accessed with url as http://mydomain/contextpath1.
In our case the PRPC application will be deployed into prweb context-root by default, so you can access the application with url http://domain/prweb. This will internally calls the servlet definition which acts as a starting point of the application.
So as per my knowledge you can change the /prweb to your custom context-root name during deployment of war file and you can write your own custom servlet definition and change it in the web.xml as suggested by chris, which means you should have the syntax of your url as follows:
http://domain/context-root/Servlet-Definition
Note: So i dont think that you can just call http://domain which doesn't make any sense as per my knowledge.
Regards
Mahesh


Accenture
IN
Hi Mahesh,
Thanks for the reply. I will convey the same analysis to Client and will check for the response.
Venkatesh


Pegasystems Inc.
IN
Hi,
I really don't think your requirement is possible with some changes in web.xml. You might have a secondary URL which is given to end users and you might redirect internally to this servelet.


Accenture
IN
Hi,
Can you please give me more details on this secondary url and redirecting internally to this servlet and steps to achieve this?
Venkatesh


Pegasystems Inc.
IN
Hi venkatesh,
Please have a look on the below link last note.
http://stackoverflow.com/questions/1363605/tomcat-base-url-redirection
Best Regards
Saran kolla