Linking to a homepage when Drupal is located in a Directory I have a problem with creating a proper link to the homepage of my website. I would like this code to redirect to my homepage:

&lt;a href="/"&gt;
&lt;div class="logo_wut"&gt;
&lt;img style="display:inline;" src="photos/logoWUT_czarne.PNG" width="370" height="135"&gt;
&lt;/div&gt;


Unfortunetaly it doesn't work, because it brings me to the homepage of my whole server and drupal is located in a subdirectory of the server. I tried to do this using php:

&lt;a href="&lt;?php print ('&lt;front&gt;');?&gt;"&gt;
&lt;div class="logo_wut"&gt;
&lt;img style="display:inline;" src="photos/logoWUT_czarne.PNG" width="370" height="135"&gt;
&lt;/div&gt;


but it doesn't work too. When i click on the image it appears: 


  Page not found The requested page
  "/drupal7/drupal-7.23/en/%3C?php%20print%20(%27%3Cfront%3E%27);?%3E"
  could not be found.
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';