Advertisement
Guest User

Untitled

a guest
Mar 16th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. if (\Config::get('ubercms.force_https', false) && \Input::protocol() != 'https') {
  2.   $url = str_replace('http', 'https', \Uri::current());
  3.   return \Response::redirect($url, 'refresh');
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement