Skip to:
Content
Pages
Categories
Search
Top
Bottom

.htaccess, files and Amazon S3


  • junger
    Participant

    @junger

    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?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘.htaccess, files and Amazon S3’ is closed to new replies.
Skip to toolbar