Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Error 404 when diacritics in the directory's name

Started by byache 4 years ago · 1 replies · 490 views
4 years ago

I'm migrating my site to a new host and the articles whose address contains accents don't work. They appear in the menu but lead to a 404 error. Is this due to a bad config in Grav ?

4 years ago

@pzul, I'm not well versed on this subject, but as far as I know, URLs can only be sent over the internet using ASCII characters. Non-ASCII characters need to be URL encoded before being transmitted.

The browser might show diacritics correctly, but the URL being transmitted does not contain non-ASCII characters.

The encoding/decoding of the URL is not in the realm of Grav, but rather the platform (OS, webserver, webserver config, ...) and browser.

Above is in line with your observation that a Grav website copied from one server to another server might not behave identical with respect to diacritics in URLs.

You might query the web and follow the discussions about using diacritics in URLs. I believe similar portability issues can arise with filenames containing diacritics.

Just my 2 cents...

Suggested topics

Topic Participants Replies Views Activity
General · by ian russell, 5 days ago
2 131 4 days ago
General · by pamtbaau, 1 month ago
2 381 2 weeks ago
General · by Hanns Mattes, 1 month ago
2 362 2 weeks ago
General · by Andy Miller, 1 month ago
0 264 1 month ago
General · by Jerry Hunt, 1 month ago
2 402 1 month ago