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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Error 404 when diacritics in the directory's name

Started by byache 4 years ago · 1 replies · 426 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 Jerry Hunt, 4 days ago
2 80 9 hours ago
General · by pamtbaau, 14 hours ago
1 51 14 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago