Linking to a homepage when Drupal is located in a Directory
You should use url() function to generate a page URL. For the frontpage it is:

&lt;a href="&lt;?php print url('&lt;front&gt;'); ?&gt;"&gt;YOUR LINK&lt;/a&gt;


If the generated links using the url() function are not correct, you can change the $base_url variable in the settings.php

$base_url = 'http://www.yourwebsite.com/drupal7/drupal-7.23';