diff --git a/cloudfiles-cdn.php b/cloudfiles-cdn.php
index 2851451475980feaca91f2da5b974bbd6b9f69fb..58255e17271a85fc38d5db7970940beebad8de74 100644
--- a/cloudfiles-cdn.php
+++ b/cloudfiles-cdn.php
@@ -373,7 +373,7 @@ class CDN_Rewrite {
 
 	public function __construct() {
 		$this->file_extensions = 'bmp|bz2|css|gif|ico|gz|jpg|jpeg|js|mp3|pdf|png|rar|rtf|swf|tar|tgz|txt|wav|zip';
-		$this->cdn_root_url = trailingslashit(CloudfilesCdn::get_setting('root_url'));
+		$this->cdn_root_url = untrailingslashit(CloudfilesCdn::get_setting('root_url'));
 	}
 
 	/**