Closed pbuttigieg closed 1 year ago
this was difficult to solve, but I managed to do it through mod_rewrite
in /etc/apache2/sites-enabled/*.conf
<Directory /var/www/oih.staging.gatewaygeo.ca/public_html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
<IfModule mod_rewrite.c>
RewriteEngine On
# Don't rewrite files or directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# Rewrite everything else to index.html to allow html5 state links
RewriteRule ^ index.html [L]
</IfModule>
</Directory>
This is not a OIH-UI problem but a wordpress problem. The fix Jeff proposed is the what is already on the Apache server for WP, this does not fix the problem. see https://github.com/iodepo/OceanInfoHubSite/issues/113
final solution : https://github.com/iodepo/OIHSiteTheme/issues/3
Description:
On search.oceaninfohub.org, copy/pasting and sharing a URL to a search result page works. On oceaninfohub.org, it doesn't.
This may be linked to https://github.com/iodepo/oih-ui/issues/49