2 deleted 6 characters in body
source | link

I'm trying to change the base urls for static and media files to the URL of my CDN however when I change them, I get 404 not found for all images/media/static/css/js

All files and content is available on the CDN url as I can go to a file directly by going to e.g.

http://CDNURL/pub/static/frontend/edgesystems/idca/en_GB/css/styles.css

Yet the URL of the file (and all others) that is trying to load on the site is like this:

http://CDNURL/frontend/edgesystems/idca/en_GB/css/styles.css 

Its missing the /pub/static/ bit out

I am currently in developer mode and have tried doing the change in di.xml as per Magento 2 : Symbolic links to pub/static files

I have a .htaccess file in /pub/static but maybe it is incorrect in there?

Does anyone have any ideas please?

Thanks

I'm trying to change the base urls for static and media files to the URL of my CDN however when I change them, I get 404 not found for all images/media/static/css/js

All files and content is available on the CDN url as I can go to a file directly by going to e.g.

http://CDNURL/pub/static/frontend/edgesystems/idca/en_GB/css/styles.css

Yet the URL of the file (and all others) that is trying to load on the site is like this:

http://CDNURL/frontend/edgesystems/idca/en_GB/css/styles.css 

Its missing the /pub/static/ bit out

I am currently in developer mode and have tried doing the change in di.xml as per Magento 2 : Symbolic links to pub/static files

I have a .htaccess file in /pub/static but maybe it is incorrect in there?

Does anyone have any ideas please?

Thanks

I'm trying to change the base urls for static and media files to the URL of my CDN however when I change them, I get 404 not found for all images/media/static/css/js

All files and content is available on the CDN url as I can go to a file directly by going to e.g.

http://CDNURL/pub/static/frontend/edgesystems/idca/en_GB/css/styles.css

Yet the URL of the file (and all others) that is trying to load on the site is like this:

http://CDNURL/frontend/edgesystems/idca/en_GB/css/styles.css 

Its missing the /pub/static/ bit out

I am currently in developer mode and have tried doing the change in di.xml as per Magento 2 : Symbolic links to pub/static files

I have a .htaccess file in /pub/static but maybe it is incorrect in there?

Does anyone have any ideas please?

1
source | link

Magento 2.1 CDN static/media base URLs - getting 404 for all files

I'm trying to change the base urls for static and media files to the URL of my CDN however when I change them, I get 404 not found for all images/media/static/css/js

All files and content is available on the CDN url as I can go to a file directly by going to e.g.

http://CDNURL/pub/static/frontend/edgesystems/idca/en_GB/css/styles.css

Yet the URL of the file (and all others) that is trying to load on the site is like this:

http://CDNURL/frontend/edgesystems/idca/en_GB/css/styles.css 

Its missing the /pub/static/ bit out

I am currently in developer mode and have tried doing the change in di.xml as per Magento 2 : Symbolic links to pub/static files

I have a .htaccess file in /pub/static but maybe it is incorrect in there?

Does anyone have any ideas please?

Thanks