• Resolved Max

    (@max2k)


    Hello,

    Does the plugin work for a WP installation that is in a directory?
    I’m asking because in the Plugin Settings I can’t enter something like example.com/wp/

    case 1. in the settings, I entered example.com
    On your site, I added the site as example.com/wp
    The test URL is redirecting to example.com/wp

    case 2. in the settings, I entered example.com
    On your site, I added the site as example.com
    The test URL is 400 bad request

    In both cases, the images(I want to use only for images) are not being displayed on the site.
    Any ideas?
    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author shift8

    (@shift8)

    Hello!

    In the plugin settings, before you enter anything, it tries to populate a default value which is the WordPress site URL. You can overwrite this of course , but where it really counts is in the Shift8 CDN dashboard where you add your site.

    If you add the site in the CDN Dashboard as “site.com/wp” , it will set up the CDN to fetch assets from that url.

    In the plugin, the main role of the plugin is to rewrite static assets to go through the CDN (i.e. site.com/wp/style.css goes to <cdn prefix>.wpcdn.shift8cdn.com).

    For both of your cases, perhaps just try to ensure that the site URL is the same. Its not ideal to have them different. The site url for the CDN has to be the same as your browser would use to access the elements.

    I hope I’m being clear! Does this make sense? Feel free to email [email protected] and perhaps give me your site url so I can check and understand better.

    Plugin Author shift8

    (@shift8)

    Hello!

    Thank you for the email! I think you have discovered something that perhaps we should update with the plugin. I think the sanitize filter we are using on the site url is causing urls with sub folders to be filtered or stripped out.

    I’ll get started on a plugin update fix and confirm it works for you first and then update here to let you know.

    Thanks for showing me this again, I feel like we need to accommodate the WordPress plugin for people in your scenario much better.

    • This reply was modified 4 years, 7 months ago by shift8.
    Plugin Author shift8

    (@shift8)

    Hello!

    A plugin update was just pushed out (1.40) to allow for the settings page to accept a site url with a sub folder (i.e. yourdomain.com/folder).

    This likely means that you should ensure that the site configured on our shift8 dashboard will match. If it does not, simply delete the site in our dashboard and re-add it.

    Hopefully this helps, if you have problems let us know!

    hi! First, thanks for plugin and work
    I`m getting the same issue with having wp in site.com/dir
    Dashboard: site.com/dir
    Plugin: site.com/dir

    But it cannot be served. Can you please provide a detailed setting?

    Thread Starter Max

    (@max2k)

    Thank you @zevs3000 for confirming that it is not working in a directory.

    Plugin Author shift8

    (@shift8)

    Hello,

    Please open a new issue and provide the domain/url exactly as you entered it. I will test to see why it might not be working for you at that point.

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Site in directory’ is closed to new replies.