I have a static html website with about 150 pages. I need all the inner pages to internally link to each other (except the index page, the sitemap and the legal or ancillary pages such as privacy, help, contact, disclaimer, etc. so just the content pages). I don’t have the time to do this manually. So I need a little tool to do this for me.
This could perhaps be done as a macro of some sort - an Excel macro perhaps. So the terminology in my description may not be strictly correct.
The website has a sitemap called [login to view URL] so the tool may get its information about the website's inner pages from that.
I have several websites, so the tool has to be able to do this for any static html site which has a file called sitemap.html.
The tool will first ask the user in what way the pages should be linked to each other. I will be able to indicate one of the following by selecting one (perhaps using radio buttons?) corresponding to the following linking patterns:
Page 1 links to page 2 which links to page 3 which links to page 4. - every page in sequence.
Page 1 links to page 3 which links to page 5 which links to page 7 - every second page in sequence.
Page 1 links to page 4 which li ks to page 7 which links to page 10 - every third page in sequence.
Random linking. - every page is linked but there is no discernible pattern.
Every page will have one link to another internal page, and every page will have a link from another internal page.
The tool will use the title tag of the target page as the anchor text for the link.
The tool will have open text dialog boxes on its interface for the user to write the sentences in which the links will be placed, with a token to insert the link and anchor text. An example follows:
"You may also be interested in our page about %link-token% later on” where the %link-token% denotes where the link and anchor text will be.
The tool will have seven such open dialog boxes on the interface, and will use these sentences RANDOMLY in choosing which sentence will be inserted in each page.
The user will complete each of these seven dialog boxes with a similar short sentence, each containing a link token.
The tool will insert these sentences, with their links, in each content page on the website. The position to insert these will be indicated on each html page by a placeholder consisting of three pipes with percentage signs either side:
At the end of this process each page will have its own sentence inserted with its link to another internal page.
I can supply a test version of my website to use (I’ve made a backup of this today).