Navigation. Link not working.

Code available:

<h1 align='center'><a  href='http://".$_SERVER['HTTP_HOST'][email protected]($_SERVER['REQUEST_URI'])."/'>  </a></h1>

When you hover over the link, the address appears:

http://site.ru\/

and of course the link doesn’t work. What’s the problem?


Answer 1, authority 100%

<h1 align='center'><a  href='http://".$_SERVER['HTTP_HOST'][email protected]($_SERVER['REQUEST_URI'])."/'>  </a></h1>

Well @dirname($_SERVER['REQUEST_URI'])why? What is the task? Make a link to the site or what?

//upd

Maybe you have a page to enter the site, so write it in the link:

<a  href='http://".$_SERVER['HTTP_HOST']."/login'>  </a>

dirnameopens a directory on a server, why do you need it?