Cpanel Server Deployed React App giving error on hitting the website manually with the link

Viewed 60

I have Deployed my react app in the cPanel server. In the route directory of cPanel i.e. public_html I have created another directory called help and placed my website zip files here. If I hit the domain address(http://mywebsite.com/help/) through the button it works fine but if I directly hit the domain(http://mywebsite.com/help/) in google it is showing 404 not found on the server. Images are attached for reference.

If i place my build files in root folder i.e.public_html it is working fine but if i use any sub folder in the root then it is throwing 404 error while refreshing the page.

cPanel 404 Error:

cPanel 404 Error

cPanel Folder Structure:

cPanel Folder Structure

0 Answers
Related