@AndrewSimard Having recently sold my company, I am bootstrapping and decided to write my website in tmswebcore as a learning exercise. It also stops me messing around with javascript. I have used PHP in the past which leaves a gap which I intend to fill with a Rest Server.
This is the Web Site if you want to peruse it. I am using Beyond Compare to copy the files over which is upto 10 times a day at present. Only because CORS stuffs up how much I can test locally.
Here is the Stack Overflow Post that suggests a solution.
I have many domains and subdomains getting redirected. And because I only have one executable (javascript file), unlike say a PHP system, I have to map real world urls to params. These are global at the moment, so the users can see them. These should be local redirections. Which means that not all relative resource paths work. For some combinations of https / http / www /no www / domains / subdomains, the user sees the index page but it does not run the rtl. I can only fix this by making the path to the main js file absolute. Because I am using auto-increment for version, I have to be a little more careful (if I am to do this).
I have asked the web hosting company for help and the company that issued the certificates. And there is no other suggestion. I havent switched over to using the a fixed path for the index page. But I am in the process of changing all other paths to absolute, (where they can be absolute).
The pros and cons of absolute vs relative paths is here apache - .htaccess rewrite URL leads to missing CSS - Webmasters Stack Exchange
Here's the relevant re-direction potion of the htaccess. Its not finished yet as I still have to have to handle 4 other domains properly. The trickiest one being .app because Google restricts what it does.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^pacificblue\.app$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\.pacificblue\.app$ [NC,OR]
RewriteCond %{HTTP_HOST} ^pacificblue\.kiwi$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\.pacificblue\.kiwi$ [NC,OR]
RewriteCond %{HTTP_HOST} ^pacificblue\.nz$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\.pacificblue\.nz$ [NC,OR]
RewriteCond %{HTTP_HOST} ^pacificblue\.online$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\.pacificblue\.online$ [NC]
RewriteRule ^ https://pacificblue.software/$1 [R=302,L]
RewriteCond %{HTTP_HOST} ^pacificblue.software$
RewriteRule ^contacts$ https://pacificblue.software\?mode\=contacts&%{QUERY_STRING} [R=302,L]
RewriteCond %{HTTP_HOST} ^pacificblue.software$
RewriteRule ^credits$ https://pacificblue.software\?mode\=credits&%{QUERY_STRING} [R=302,L]
RewriteCond %{HTTP_HOST} ^pacificblue.software$
RewriteRule ^downloads$ https://pacificblue.software\?mode\=downloads&%{QUERY_STRING} [R=302,L]
RewriteCond %{HTTP_HOST} ^pacificblue.software$
RewriteRule ^developer$ https://pacificblue.software\?mode\=developer&%{QUERY_STRING} [R=302,L]
RewriteCond %{HTTP_HOST} ^pacificblue.software$
RewriteRule ^projects$ https://pacificblue.software\?mode\=projects&%{QUERY_STRING} [R=302,L]
RewriteCond %{HTTP_HOST} ^pacificblue.software$
RewriteRule ^(download)/([^/]+)$ https://pacificblue.software?mode=$1&name=$2 [L]
RewriteCond %{HTTP_HOST} ^pacificblue.software$
RewriteRule ^(payment)/([^/]+)$ https://pacificblue.software?mode=$1&name=$2 [L]
RewriteCond %{HTTP_HOST} ^pacificblue.software$
RewriteRule ^(donation)/([^/]+)$ https://pacificblue.software?mode=payment&name=$2 [L]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
Header append X-Frame-Options: "SAMEORIGIN"
I like to automate things, to avoid human errors. So if I have to, I might write a processor for the files(s), Its a big post, but I wanted to avoid lots of tos and fros :-)