Options +FollowSymlinks
RewriteEngine on
RewriteBase /
+
+ RewriteCond %{HTTPS} off
+ RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
+
# Redirection to www. subdomain
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
$url = '/files/' . $path . $page . '.jpg';\r
$file = $dir . $page . '.jpg';\r
if (!file_exists($file) || !filesize($file)) {\r
- $wsurl = 'http://workshop.fluidbook.com/services/getFluidbookPage/' . $fluidbook_id . '/' . $page;\r
+ $wsurl = 'https://workshop.fluidbook.com/services/getFluidbookPage/' . $fluidbook_id . '/' . $page;\r
file_put_contents($file, file_get_contents($wsurl));\r
}\r
$size = CubeIT_Image::getDimensions($file, $width, $height);\r