Try our conversational search powered by Generative AI!

Wrong <base> tag with Friendly Url in EpiServer 4.61

Vote:
 

Hi. We introduced Friendly urls in our company website a couple of weeks ago in for doing SEO, and we have come upon a problem. Recently google reindexed our website and it appears that our startpage which has the url like: http://www.example.com/ have dissapeared from its index. We looked at to what the problem might be, and we noticed that the <base> tag looks different in the startpage that all other pages.

On all other pages, this base-tag is included:

<base href="http://www.example.com/templates/" />

However, this is the base-tag of the startpage, which has a double slash after the domain name which may cause the problem:

<base href="http://www.example.com//" />

 

In our Header.ascx we have included the following tag which is the one that is creating the base tag:

<episerver:FriendlyUrlRegistration runat="Server" ID="Friendlyurlregistration1"/>

 

We are looking to how to remove these double slashes, anyone that has seen anything like this.

 

Thanks
// Christoffer Ramqvist

#35696
Dec 21, 2009 15:09
Vote:
 

Sorry about the bad copy-paste. Here are the base-tags:

<base href="http://www.example.com/templates/" />
<base href="http://www.example.com//" />

<base href="http://www.example.com/templates/" />

<base href="http://www.example.com//" />    <--- this it the faulty one

#35697
Dec 21, 2009 15:12
Vote:
 

Had to disable the basehref property of the friendlyUrlRegistration class, which worked. Google seems to have picked up our startpage again. All our links are relative to our root anyway so i think we can live without the base tag.

Would be nice to know a better solution though.

#35744
Dec 22, 2009 12:59
Vote:
 
#37498
Mar 09, 2010 8:00
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.