Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

arunasrim's avatar

endpoint with prefix 1.0, giving resource not found error

I have Api working with prefix 'v1', as per requirement i have changed it to 1.0,. but it isnt working in my local VM which runs on php server. whereas it is working fine on nginx based azure linux app service.

Can someone help here to resolve the same on local VM well.

0 likes
3 replies
vincent15000's avatar

I would not change the name to 1.0 because of the dot . which can be understood by the server as a separation between for example the domain name and the extension.

1 like
arunasrim's avatar

Thanks for the reply. but how come it is working on other servers. also it's not exactly breaking at dot . here is the error looks like

The requested resource /api/1.0/releases?lang=eng was not found on this server. for the request http://localhost:9000/api/1.0/releases?lang=eng

1 like
vincent15000's avatar
Level 63

@arunasrim It can work on some servers and not on others, that's why it would be a good idea not to do this. Imagine you need to move your application from a server to another, what will you do with your API and with the clients using it ?

1 like

Please or to participate in this conversation.