top of page
  • Writer's pictureBrent Payne

Multiple base URLs

The current URL includes a base URL setting more than once which can lead to unexpected issues.


Why is this important?

A singular base element is expected to set the URL base for any relative URLs within a page. Having multiple base tags can invalidate the document and potentially confuse search engine indexing processes.


What does the Optimization check?

This Optimization activates when any internal URL is detected to have two or more base tags.


Examples that trigger this Optimization:

Imagine visiting the address: https://example.com/page-a

The Optimization would be set off for this address if it contained multiple base tags, even with identical base URLs:


<!doctype html><html lang="en">  <head>    <base href="https://example.com">    ...    <base href="https://example.com">  </head>  <body>...</body></html>


How do you resolve this issue?

Eliminate any unnecessary base tags from URLs in question. As a best practice, also consider avoiding the use of relative URLs completely (refer to the articles below for more details).


Further reading

4 views

Recent Posts

See All

ClubReq Gets A Link (Because They Asked)

I am a mentor for Techstars and have been for over 10 years. In those ten years I have mentioned to startups to ask ANYONE and everyone that they meet to link to their site. Yet, in all those times on

Comments


bottom of page