.htaccess redirect file on Central?

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
KarenYou
Jr. Propeller Head
Posts: 2
Joined: Wed Jan 22, 2020 9:26 am

.htaccess redirect file on Central?

Post by KarenYou »

We are about to switch our Knowledge Base from Wordpress to Madcap, to be hosted by Madcap Central. We will continue to use the same domain (knowledgebase.blabla.com) by mapping it with CNAME. The problem is, our software has a number of hard-coded links to the Wordpress articles; these can't be easily changed, so we've been managing them with an .htaccess file on the Wordpress server. I asked Madcap Support whether we can continue to do this with Central, and no one seems to know what I'm talking about. Once we switch, the links will all be broken, since we can't recreate the exact URL path within our Madcap project.

Basically, the question is: using Madcap tech, is it possible to redirect this:

https://knowledgebase.blabla.com/knowle ... ase-notes/ (Wordpress URL)

to this:

https://knowledgebase.blabla.com/knowle ... -notes.htm (Madcap URL)

Note that Wordpress urls end in slash, i.e. not .htm.

Has anyone else had to deal with this issue? I would really appreciate some advice, as this is pretty much the only thing stopping us from launching the new Madcap site. Madcap Support doesn't seem to get what I'm trying to do.
Last edited by KarenYou on Thu Jul 23, 2020 1:36 am, edited 1 time in total.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2650
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: .htaccess redirect file on Central?

Post by ChoccieMuffin »

Would it be a really silly thing to suggest doing a detailed search and replace on your html files? I use FAR, and to turn

https://knowledgebase.jedox.com/knowledgebase/release-notes/

into

https://knowledgebase.jedox.com/knowledgebase/jedox/release-notes/release-notes.htm

the code would be:

FindStart='https://knowledgebase.jedox.com/knowledgebase/'
FindEnd='/'
Replace='https://knowledgebase.jedox.com/knowled ... ox/$A$.htm'
$A$.FindSubStrNo=1
$A$.ContainingText=
$A$.NotContainingText=
$A$.StartText='https://knowledgebase.jedox.com/knowledgebase/'
$A$.EndText=/'
$A$.IncStartEndText=n

Doing this (probably one at a time so you can be sure it is picking up the right thing) identifies anything between "'https://knowledgebase.jedox.com/knowledgebase/" and "/" as the $A$ text, so as long as all your links start with "'https://knowledgebase.jedox.com/knowledgebase/", that should do the trick.
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Post Reply