Results 1 to 5 of 5

Attachments through CDN?

This is a discussion on Attachments through CDN? within the General Discussion forums, part of the vBSEO SEO Plugin category; Has anyone figured out how to change the attachment URL's so they are served through a CDN? To be more ...

  1. #1
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    762
    Liked
    30 times

    Attachments through CDN?

    Has anyone figured out how to change the attachment URL's so they are served through a CDN?

    To be more specific, a CDN, like SimpleCDN, can have 'dynamic buckets' so that any data on the server can be mirrored on the fly. with a CNAME record it can appear that it is coming from your domain.

    So if I have an attachment url that is
    http://site.com/attachments/forum/filename.jpg

    making it

    http://cdn.site.com/attachments/forum/filename.jpg

    will serve the same attachment off of the CDN.

    The question is how to change the url from site.com to cnd.site.com through vbseo?

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Hello,

    you can find "attachment prefix" in config_vbseo.php file for that:
    define('VBSEO_ATTACHMENTS_PREFIX', 'http://www.domain.com/attachments/');

  3. #3
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    4,011
    Liked
    13 times
    I have just started dabbling with CDN.. everything I read said to NOT use your main domain.

    Something to do with leveraging the multi threaded way that Firefox browses - it can connect to a specific domain a limited number of times, so multi-domain CDN of static resources appears to download quicker for the viewer.

  4. #4
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    762
    Liked
    30 times
    Oleg, thanks for the reply. Unfortunately changing the url to the dynamic cdn url results in a 404. I'm guessing because the CDN can't access some of the attached files (in my case you have to be a member to download attachments) I was hoping it would be that easy, but I guess not.

  5. #5
    Senior Member woostar's Avatar
    Real Name
    woostar
    Join Date
    Apr 2007
    Posts
    788
    Liked
    5 times
    I just put in 'Replacement Variables':
    href="http://site.com/attachments/
    src="http://site.com/attachments/

    and replace with the CDN domain.
    2011 Average: 1 post every 5 seconds... 24/7

Similar Threads

  1. attachments
    By woodysfj40 in forum Troubleshooting
    Replies: 1
    Last Post: 12-16-2007, 06:11 PM
  2. Attachments in blogs
    By Elmer in forum Bug Reporting
    Replies: 5
    Last Post: 11-28-2007, 07:21 PM
  3. PM Attachments 3.5
    By Ashley in forum Troubleshooting
    Replies: 10
    Last Post: 03-11-2006, 02:47 PM
  4. Attachments in PM
    By infordig in forum Troubleshooting
    Replies: 3
    Last Post: 12-11-2005, 09:28 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •