divvun / satni-frontend

This is a React frontend for Divvun's GraphQL dictionary and term api backend.
GNU General Public License v3.0
4 stars 3 forks source link

Article URL's return 404 #69

Closed snomos closed 1 year ago

snomos commented 1 year ago

Example: https://satni.org/geađgi

Here's what I get in Safari:

image

albbas commented 1 year ago

This was fixed by adding a rewrite rule for React router in the apache config: 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]