andremallet75 Posted July 17, 2019 Share Posted July 17, 2019 I have multiple instances of the same URL on the same page and, when I duplicate the page, I have to manually change every single href for this particular URL. Is there a way to specify this URL in the header so that every instance points to this new URL without having to manually change every one? What about multiple urls? so..A=https:...., B=https:...., C=https:... Link to comment Share on other sites More sharing options...
Funce Posted July 17, 2019 Share Posted July 17, 2019 You could try using relative to root links, that way if the current page changes, moves or duplicates, they still point to the same place. The only thing with this is you'll need to update them all should you need to move any of the linked pages. Relative to root paths start with '/' and are relative to wherever is "https://url.domain/index.html" (for example) <a href="/path/to/file.html">Link</a> So if you wanted to find https://w3.schools.invisionzone.com/topic/59575-html-header-tag/ (this thread) You would go like this <a href="/topic/59575-html-header-tag/">This Thread</a> Link to comment Share on other sites More sharing options...
dsonesuk Posted July 17, 2019 Share Posted July 17, 2019 Base tag https://www.w3schools.com/tags/tag_base.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now