Double slash in URL is breaking plugin JavaScript, CSS and Images
-
Hello,
first of all, thanks for the amazing plugin. It works really well. But since I moved to a CDN I’ve noticed that the plugin settings in the WordPress admin is breaking to load. I’m having 404 Not Found in JavaScript, Images and CSS because of a double slash typo in the URL.
The plugin is trying to load the JS from this URL which returns a 404 Not Found
https://www.example.com/wp-content/plugins/sucuri-scanner//inc/js/scripts.js?ver=12e5e66If you remove the double slash between the plugin name (sucuri-scanner) and the includes directory (inc), it works fine:
https://www.example.com/wp-content/plugins/sucuri-scanner/inc/js/scripts.js?ver=12e5e66The same goes to:
pluginlogo.png
menuicon.png
scripts.js
pluginlogo.png (again)
menuicon.png (again)
scripts.js (again)
styles.cssLet me know if you need further information to reproduce this step. I’m currently serving PHP from AWS EC2 and static content from AWS S3, both behind AWS CloudFront.
- The topic ‘Double slash in URL is breaking plugin JavaScript, CSS and Images’ is closed to new replies.