szepeviktor / w3-total-cache-fixed

A community driven build of W3 Total Cache. The aim is to continuously incorporate fixes, improvements, and enhancements over the official WordPress release of W3 Total Cache.
https://github.com/szepeviktor/w3-total-cache-fixed/releases
MIT License
237 stars 47 forks source link

Incorrect CDN URL path #566

Open telsav opened 6 years ago

telsav commented 6 years ago

here is the info. image

and attachments url path: https://cdn.xxxx.net/wp-content/uploads/www.xxxx_.net/wp-content/uploads/2018/02/40270003pq06030n3sr0.jpg

but the correct path should be https://cdn.xxxx.net/wp-content/uploads/2018/02/40270003pq06030n3sr0.jpg

who can tell me how to fix the issue. all attachments on my site is not correct. i got many 404 on my site.

telsav commented 6 years ago

and this is the json config file which i export from this plugin

www.gblm.net.zip

jbyrneirl commented 6 years ago

I have a variation on this issue in that the CDN URL looks like this

http://d2iul8nt4ab21i.cloudfront.net/http://website-hostname.com/wp-content/themes/website-hostname/style.css

Server Modules & Resources:
Plugin Version: 0.9.6
PHP Version: 5.6.35;
Web Server: nginx
FTP functions: Installed (required for Self-hosted (FTP) CDN support)
Multibyte String support: Installed (required for Rackspace Cloud Files support)
cURL extension: Installed (required for Amazon S3, Amazon CloudFront, Rackspace CloudFiles support)
zlib extension: Installed (required for compression support)
Opcode cache: Installed (OPCache)
Memcached extension: Installed
Memcache extension: Not installed
Redis extension: Installed
HTML Tidy extension: Installed (required for HTML Tidy minifier support)
Mime type detection: Installed (Fileinfo) (required for CDN support)
Hash function: Installed (hash) (required for NetDNA / MaxCDN CDN purge support)
Open basedir: Off
zlib output compression: Off
set_time_limit: Available
Additional Server Modules
New Relic
PHP version: Not supported: 5.6.35. Supported versions are 5.2.x, 5.3.x, 5.4.x.
Operating System: Supported
Web Server: Supported
WordPress Resources
/etc/nginx/conf.d/globals/wordpress-w3-total-cache.conf: OK
/data1/nginx/html/ir-wp-multisite/wp-content: OK
/data1/nginx/html/ir-wp-multisite/wp-content/uploads/2018/04: OK
Fancy permalinks: /blog/%year%/%monthnum%/%day%/%postname%/
WP_CACHE define: Defined (true)
URL rewrite: Enabled
Network mode: Yes (subdomain)

I'm using the latest release (0.9.6.1) and the Cloudfront CDN with a Pull Origin.