Get rid of ".htm" from the URL of the HTML5 output

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
vabigupta1
Jr. Propeller Head
Posts: 4
Joined: Mon Aug 20, 2018 10:21 pm
Contact:

Get rid of ".htm" from the URL of the HTML5 output

Post by vabigupta1 »

Hello all,

I am publishing an HTML5 output using Madcap Flare and as usual when I preview it or open it in a browser, the URL ends with the file extension (.htm).
However, I do not want to keep that file extension in the URL (.htm). I am using GitHub Pages to publish my output and from the server side there is no issue in redirecting or accessing the URL without the file name extension. For example, the following URL:
https://www.anvblog.com/dining_room_ch ... ation.html is also accessible without the file extension as https://www.anvblog.com/dining_room_chr ... ecoration .

However, all my links in the output contains the file extensions and therefore, they are picked by the search engines. Keeping two URLs with the same content is not good for SEO.
I tried using a script to remove the .htm from all the anchor tags, but that didn't work for the menu items and other references.

Is there any option within Flare that can help me remove these or any trick that someone has tried to remove those?
Vaibhav Gupta
Madcap Advanced Developer
My recent posts on Madcap flare
Post Reply