Changing document_root gives error 404 in sidebar links

I have installed the OJS 3.1 on my website in directory - jiaats.com/ojs31
Then I have changed the document_root to access the OJS website directly from /jiaats.com to /jiaats.com/ojs31.

For first 2 days all works fine. But suddenly third day I face error 404 for accessing the links of sidebar items which I have created manually.
Basically the links are redirectes to the main navigation menu items which I have added manually.

My website links are as -
Before changing document_root – http://jiaats.com/ojs31/index.php/bma/index
After changing document_root – NN Publication

Please guide me how can keep hidden the directory OJS31 in URL ?

Hi @navmalik,

This FAQ contains information about changing the base URL for your site.

Best,
Amanda Stevens
Public Knowledge Project Team