![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#6
|
||||
|
||||
|
Personally if I knew this was something that I needed on a long-term basis I would do this in .htaccess rather than using a Genesis or WP hook. In theory it should be much faster at the server level.
You could put something like this into your .htaccess file: Code:
RewriteEngine On RewriteRule ^wp-content/uploads/(.*)$ http://cdn.olicity.com/wp-content/uploads/$1 If you only wanted to pull specific files from your CDN, you could do something like this: Code:
RewriteEngine On
RewriteCond %{REQUEST_URI} (.*)\.css$ [NC]
RewriteRule ^(.*)$ http://cdn.olicity.com/$1
__________________
When asking for help, kindly: 1) Read the FAQ. 2) Post your URL. 3) Use [php][/php] tags when posting programming code, or [html][/html] when posting website source code. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Add 2nd Subnav Bar - Conditionally? | angiemel | General Discussion | 2 | 05-21-2010 07:27 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us