• Resolved Anomn

    (@segurihost)


    I tested in different websites and works only in websites installed on public_html.
    It doesn’t work with websites installed on subfolders.

    I tried to clean litespeed cache, deactivating it and everything already other users tested in another topics of this forum. There’s no way to make it works.

    Please test with subfolders, ex: domain.com/subfolder.

    Only works in domain.com or subdomain.domain.com (both tested too)

    The page I need help with: [log in to see the link]

Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Author luckychingi

    (@luckychingi)

    Checked this https://dp7bccodzdgs7.cloudfront.net/ and it does not seems to point to https://www.segurihost.com/pymes

    I think its pointing to https://www.segurihost.com

    Got this error in Chrome Dev Console:
    GET https://dp7bccodzdgs7.cloudfront.net/pymes/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp net::ERR_ABORTED 404

    Notice /pymes in the URL, if the Cloudfront URL was pointing to the subfolder, it would have removed pymes from the URL

    It should be
    https://dp7bccodzdgs7.cloudfront.net/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp

    Reset the CDN, this wont make any change on Amazon
    Reload the page, add the access ID and key, ensure the proper domain and subfolder name is added to the respective boxes and then click modify cdn

    Thread Starter Anomn

    (@segurihost)

    Thread Starter Anomn

    (@segurihost)

    it worked, but now I have another problem that I’m sure you know how to solve.

    Icons from certain fonts don’t show.

    Image: https://ibb.co/Gvzf1sC

    GREEN: worked
    RED: didnt work

    I put this in my .htaccess

    AddType font/ttf ttf
    AddType font/otf otf
    AddType font/woff woff
    AddType font/woff2 woff2
    AddType application/vnd.ms-fontobject eot
    <FilesMatch “.(eot|ttf|otf|woff|woff2)”>
    Header set Access-Control-Allow-Origin “*”
    </FilesMatch>

    but some icons shows normal

    Thread Starter Anomn

    (@segurihost)

    I had to exclude https://www.segurihost.com/pymes/wp-content/themes/salient/style.css from CDN, but that is not a real solution. Why happen this? I have not seen another solution in this forum

    Plugin Author luckychingi

    (@luckychingi)

    excluding the style is a temporary solution.

    Plugin Author luckychingi

    (@luckychingi)

    Chrome Dev does not show any styles loaded from the website, it shows all styles loaded from cloudfront CDN URL.

    Plugin Author luckychingi

    (@luckychingi)

    All good @segurihost ?

    Plugin Author luckychingi

    (@luckychingi)

    Closing as no response

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Not working in subfolder’ is closed to new replies.