'Get 404 error for sub links from wordpress for second website

I have a Managed WordPress Hosting, and I can only have one Website on it, and WordPress is preinstalled, now I installed a PHP script website beside the WordPress website in a subfolder in the root, and I import the Database to WordPress database, The PHP website's homepage with this link Example.com/1/ will load without any problem, but I get 404 error from WordPress website for sub links : example.com/1/sublinks

What should I do? The website beside WordPress will run in localhost without any problem



Solution 1:[1]

First, delete the .htaccess file, and after that update permalinks by the admin panel. please follow the below steps. wp-admin > settings > permalinks

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dotsquares