I have a small challenge and you'll have to excuse me because I haven’t touched JS for some time and have gotten a bit rusty.
I have an intranet site at work that has roughly 500,000 htm pages (no joke). I have a search engine (zoom) that returns results of the various htm files. The site that I indexed is setup with about 41,600 folders with each folder containing 12 to 13 htm files. One of the htm files is a default.htm file that is actually a frame page that displays the other htm files. When I ran zoom to index the site it did not index the default.htm pages in each folder because there is no text in it.
My users need to always see the default.htm page rather than being able to select the other pages from the search engine.
So what I want to do is put a JavaScript on the search results page that looks at the various URLs and changes the URL OnClick to "default.htm" if it finds one of the htm pages in the URL.
The htm files to change are as follows:
doc_index.htm
document_history.htm
frame_menu.htm
project_history.htm
status.htm
status_history.htm
summary.htm
task_history.htm
task_list.htm
terms.htm
terms_history.htm
Is there a quick and easy way to do this?
Thanks in advance for any help.