.htaccess, files and Amazon S3
-
Hi all – I am trying to implement Amazon S3 as my CDN. However, the Rewrite Rule in htaccess for showing stored files (avatars, etc. — everything in blogs.dir) that changes the file path of /wp-content/blogs.dir/…../…/ to mysite.com/files/… is screwing with the path for the files on the CDN.
The path on the CDN needs to be the full path .. wp-content/blogs.dir/ ….
But the re-write rule is forcing it to files/…
I’ve narrowed it down to here:
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]What’s the right way to fix this? Any ideas?
- The topic ‘.htaccess, files and Amazon S3’ is closed to new replies.