W3 TC overwriting url and creating error 404
-
Hi,
As I mentionned on another post (here : https://www.ads-software.com/support/topic/w3-tc-overwriting-baseurl-of-another-script ), W3 TC is rewriting urls.
I first thought it was only when you add some script in a page/post that relates to other files.But it does too with my CSS when I use @font-face now.
@font-face { font-family: MyFont; src: url(font/MyFont.ttf), url(font/MyFont.eot); /* IE9+ */ }
On the home page, the browser will look for https://www.mydomain.com/font/MyFont.ttf
But on a specific page, post, archive page, category page, it will look for https://www.mydomain.com/some-page-or-post-url/font/MyFont.ttf which leads to an error 404 obviously….
For example : https://mr-eddy.com/1364-bordeaux-1-by-day/We definitely need a workaround for this. I managed to avoid this problem with my script I wrote about by adding the pages involved to the list of pages to not minify. But I can’t do the same for my entire website.
How can we manage this ? I found some all post here : https://www.ads-software.com/support/topic/plugin-w3-total-cache-font-face-not-working-in-firefox?replies=21 But nothing in there helped me…
Regards,
Eddy
- The topic ‘W3 TC overwriting url and creating error 404’ is closed to new replies.