Child pages
  • IU Sitehosting Quick Start Guide

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Canonical URLs - If you are hosting a virtual domain you probably want to set up a canonical URL for your site and redirect all other URLs to this preferred URL.  For example, if you have mysite.luddy.indiana.edu but the site is also reachable using urls www.mysite.luddy.indiana.edu and mysite.sitehost.iu.edu then you can force all URLS to use mysite.luddy.indiana.edu by adding this to a .htaccess file at the top of the site:

    Code Block
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^mysite.luddy.indiana.edu$
    RewriteRule ^(.*)$ httphttps://mysite.luddy.indiana.edu/$1 [R,L] 

    Note that having your site only accessible via a single domain can also help with Search Engine Optimization (SEO).

  • Redirecting All Requests to HTTPS - All traffic on the IU Sitehost system will be via https so the redirect from http to https happens automatically.

...