RE: RE: Is it mandatory to have /o to call Rest service in Liferay ?

Jamie Sammons, modified 2 Years ago. New Member Posts: 10 Join Date: 11/6/17 Recent Posts

I have built a rest module in Liferay 7.3 and I am accessing the service as below.

http://localhost:8080/o/example-service  - This is ok in locally, but I want to remove /o from the URL at the production level, how can we do that?

When I pushed the service to UAT I am unable to access the service without /o 

thumbnail
Mohammed Yasin, modified 2 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts

Hi,

You can use URL rewriting on your web server.

You can refer to the below thread; it may be helpful.

https://liferay.dev/ask/questions/development/how-to-remove-o-prefix-from-url-in-liferay-7-1-1

Jamie Sammons, modified 2 Years ago. New Member Posts: 10 Join Date: 11/6/17 Recent Posts

Thanks for your reply Yasin