2013-07-05 5 views
-5

I have 3 blogs on blogger. One of them is linked to main domain helloworld.info whereas the other two blogs are linked to sub-domains blog.helloworld.info and technical.helloworld.info.<a href=' '> not working properly

I am using a blogger template and when I try to use with my tabs on the top of the page wrong url is opened. Below is the code:

<div class='menu'> 
<ul> 
<li><a expr:href='data:blog.homepageUrl'>Home</a></li> 
<li><a href='#'>Blog</a> 
<ul> 
<li><a href='technical.helloworld.info'>Technical</a></li> 
<li><a href='blog.helloworld.info'>Life Lessons</a></li> 
</ul> 
</li> 
<li><a href='p/terms-of-use.html'>Terms of Use</a></li> 
<li><a href='3'>About Me</a></li> 
</ul> 
</div> 
</div><!-- end header-wrapper --> 

Now when I click on the Technical tab the URL displayed is:

www.helloworld.info/technical.helloworld.info

However, I expect it to be

technical.helloworld.info

I am unable to find the problem.

Whole of the code can be found herehttp://pastebin.com/j7FFUM7U

+0

의 앞에 HTTP 또는 HTTPS를 추가해야합니까? – mohkhan

+0

URL 앞에 '//'를 추가하여 브라우저가 보편적이라는 것을 알리십시오. 정말로'search' 기능과'Google '이라는 사람을 사용해야합니다. 그렇지 않으면 당연히 아래쪽 투표를 끝내게 될 것입니다. 제발,이 말을주의 깊게 읽어보십시오. – rktcool

답변

3

프로토콜이 없습니다. 따라서 href technical.helloworld.info도 하위 폴더가 될 수 있습니다. 당신은 HTTP두면 즉

, : 아래의 코멘트를 인용

URL에 떨어져 // 부분은, 그것은 상대 경로가 아닌 새 도메인으로 처리합니다

+3

즉, http : // 부분을 URL에서 나가면 URL은 상대 경로가 아닌 새 도메인으로 처리됩니다. 따라서 링크는 다음과 같아야합니다 - http : // technical.helloworld.info –

+0

응답 주셔서 감사합니다. – rsharma

0

<a href='http://technical.helloworld.info'>

0

쓸 내용은 다음과 같습니다. <a href="http://technical.helloworld.info">Technical</a> 귀하의 브라우저가 지정한 방법으로 상대방 리소스로 지정한 위치를 찾으려고 시도합니다.

0

당신은 http://technical.helloworld.info을 가리켜 야 무슨 뜻 마십시오 URL