I am using Docusaurus to provide a User Manual for a web app that is hosted on an AWS EC2 virtual server. The user accesses it through a button on the app. I am trying to set it up so that it will run on three sites without additional configuration (i.e. I just want to pull the code from GitHub to each of the sites without making individual site changes). The three sites are:
localhost/prsm/doc/help/
exampledev.com/prsm/doc/help/
example.com/doc/help/
-- note noprsm
directory for this one
I have set the baseUrl
in docusaurus.config.js
to /prsm/doc/help/
and all works well for the first two sites, but results in a '404 not found' error on site 3. I wondered about using an apache RewriteRule
in an .htaccess
file on site 3, but can't work out what the rule should be. Or is there an alternative way of getting it to work on site 3? (Putting the app in a prsm
subdirectory is not an option, because the URL for site 3 is already well known to users and they will be confused if it changes).