Page 1 of 1

CDN redirects

Posted: Sun Mar 17, 2019 2:18 am
by janez72
Hello,

I'm using CDN to speed up the websites.
Static files can be served from CDN server, using 301 redirects in .htaccess.

To get real benefit from CDN, a better solution would be to have proper links already in basic html.
Thus avoiding one additional http request per file.
Now, i have to do it manualy in c-panel, page by page.

Is or could there be a way to rewrite links inside WYSIWYG Web Builder already?
Some providers have plugins to do this.

Re: CDN redirects

Posted: Sun Mar 17, 2019 7:47 am
by Pablo
I'm sorry, there is no plugin for this.
This is only possible when the code is generated on the server, like in a database driven content management system.

Re: CDN redirects

Posted: Sun Mar 17, 2019 12:58 pm
by janez72
Rewriting certain file types addresses on output would be a solution.
As there is no way to bulk edit html pages in c-panel.
At least I don't know about it.

So once html is on server, 301 redirects are the only solution.
But as said, it means an extra http request per file, so the CDN looses it's purpose, as these requests slow down page rendering.