There are 2 ways to change the base url of the Drupal website
1. Using .htaccess file
Add a .htaccess on the parent directory, and put the following text to it,
RewriteEngine on
#index page
RewriteRule ^$ drupal_website_path/index.php [L]
#the other pages
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* drupal_website_path/$0 [L]
2. Using setting.php file
Go to your Drupal directory, changed the settings.php file which locates at default/settings.php.
Change the $base_url to your domain url, such as $base_url = ‘http://www.webdevsupports.com’
Or
$config['base_url'] = 'http://www.webdevsupports.com';
Comments