Feature #1685
closedMake static links work
Description
At the moment URLs of e.g. detail views are shown like https://discover-connec.openatlas.eu/single/9411 but if they are addressed directly a 404 occurs.
Updated by Alexander Watzinger over 2 years ago
I talked with Christoph about it and he told he managed this to work and it's documented in the bottom of the README (https://github.com/craws/OpenAtlasDiscovery).
I just tested it and it works with his version, see e.g. https://frontend-demo.openatlas.eu/single/5296. Not sure how he made it, there was nothing special in the Apache config files.
Because I won't have time next week, maybe you could look at this new information, maybe Christoph can help too (I added him as watcher). Otherwise we can try to meet up the week after the next one.
Updated by Christoph Hoffmann over 2 years ago
Hi everyone, it should be just a matter of inserting a .htaccess
file in the root directory of the dist
version like so:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.html [L] </IfModule>
Updated by Alexander Watzinger over 2 years ago
- Status changed from Assigned to Closed
- The Apache rewrite module seemed to have not been activated at the ACDH-CH server (this did surprised me a bit) but is now activated
- The .htaccess approach didn't work. Not sure why but I never use it so I may have overlooked something
- The posted lines of Christoph do work if put into the Directory section of the Apache configuration file
It's working now, see e.g. https://discover-connec.openatlas.eu/single/9411
Because I wasn't sure where to put this information I expanded the README in the main branch of OpenAtlas-Discovery: https://github.com/craws/OpenAtlasDiscovery
Although closing this issue feel free to adapt the workflow (e.g. with an .htaccess file) or change how it is documented.