-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static resources URL having double slash, prevent loading from AWS S3 CDN. #42
Comments
I'm also facing a similar problem, did you find any fix? I would appreciate it if you could shed some light on this. |
Hi, @nirmal1520 . I stopped using the plugin for CDN in favor of W3 Total Cache, and eventually stopped using the plugin in general just by hardening WordPress manually (in the server and in AWS CloudFront and S3). In the end, as you can see the links above, I stopped using WordPress in total because I just need a static website. If your case is exactly the same, I recommend that you stop forwarding Sucuri static assets to S3 via CloudFront and let it pass directly to your application/web (WordPress) server. You can create a behavior for this case and point to the origin where the .php stands. But, if you consider all the "hardening" that Sucuri does, you could just manually do them and avoid another plugin consuming/processing your resources (like disk, database, cache, etc). Regards, |
Hi, @nirmal1520 . The error comes from here: sucuri-wordpress-plugin/sucuri.php Line 114 in 5687384
You can create a Pull Request removing this extra slash in the end but I have no clue if they will accept and what are their procedures for accepting pull requests. I've never contributed here. Cheers, |
Thank you so much @henriquemattos |
Hi, don't know if this is the right/official place, but here we go:
The following files have two slashes in the URL path and the file can't be loaded from AWS S3 CDN that way. Returns a 404 Not Found in the Network tab from Dev Tools.
Their original URL should be:
https://www.visualworks.com.br/wp-content/plugins/sucuri-scanner/inc/images/pluginlogo.png
But instead it is:
https://www.visualworks.com.br/wp-content/plugins/sucuri-scanner//inc/images/pluginlogo.png
I'm currently using AWS CloudFront to forward wp-content/.[js|png|jpg|css...] to AWS S3 origin.
This is a very high issue because I can't access the plugin settings page properly as the CSS and JavaScript don't load.
The text was updated successfully, but these errors were encountered: