ossimUpdate

In order to completely migrate this site to a HTTPS standard, due to some given technical limits one issue was still left:

when entering this site by forcing the WWW prefix (www.vedran-zulin.from.hr) you would have been faced with a warning about invalid certificate.

However (I'm not going to explain the whole HTTPS-WWW-Certificate-Redirection background on this occasion because it would take hours I don't currently have :) ), in order to get even such requests redirected to the right landing page the following should be done:

  1. open the .htaccess file (it should be right there in the root directory)
  2. under the "## Begin - Custom redirects" section add the following lines:

RewriteCond %{HTTP_HOST} ^www.SITENAME.TLD [NC]
RewriteRule ^(.*)$ https://SITENAME.TLD/$1 [L,R=301,NC]

  1. make sure that the RewriteEngine is set to ON
  2. save and close the file
  3. clear the cache(s) and check whether the whole thing works (just in case :) )

 

(If you are after more knowledge on the matter, I'd suggest searching for Permanent / 301 Redirect.)