P
P
Pavel Chuev2018-02-19 18:49:47
WordPress
Pavel Chuev, 2018-02-19 18:49:47

How to fix 404 error when uploading new WP files?

I upload fonts via ftp, but when I add them to css I get 404.
I go to the full path of the file - also 404 I
changed the access rights to the folder and the font file itself. There is a WP Security plugin and I sin on it. What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-02-19
@azerphoenix

- If my memory serves me, then you need to "enable support" for this font (otf, ttf, woff, woff2) in the hosting. You should even have a warning about this in the console.
example for IIS https://hotcakescommerce.zendesk.com/hc/en-us/arti...
example for apache https://stackoverflow.com/questions/7415640/correc...
example for nginx https://github .com/fontello/fontello/wiki/How-to-s...
- Also check chmod (755 for directories, 644 for files)
- Also try including font using relative path
https://stackoverflow.com/questions/5314708/ css-fo...

@font-face{ /* for IE */
font-family:FontFamily;
src:url(Font.eot);
}
@font-face { /* for non-IE */
font-family:FontFamily;
src:url(http://) format("No-IE-404"),url(Font.ttf) format("truetype");
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question