Searched for an answer on Google, but there seems to not be one.
Follow through these steps hope it could help.
- Just copy all the data from drupal directory located on the server to one level up.
- Now delete the drupal directory and check the site by running it directly by http://example.com
- if it doesn't work, then check in the setting.php and search for the line if defined.
// Now change this line to
$base_url = "http://example.com";
OR the other way you can rewrite the base using .htaccess file located at the root.
Hope it will help you.