Changing document_root gives error 404 in sidebar links

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

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 –
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.

Amanda Stevens
Public Knowledge Project Team