Indiana University Northwest

Web Services

red line

Editing Web Page Templates

Read the Web Page Templates for more information on templates.

Steps for installing a new website

  • Getting the Department Template Files and unzipping them.
  • Set virtual links for styles folder - mkdir styles - change into styles directory
    • ( in styles folder use ln -s -f /ip/iunhome/www/iunstyle.css to create the link)
    • ( in styles folder use ln -s -f /ip/iunhome/www/iunstyle_print.css to create the link)
    • Change the rights on the styles folder so the file is not erased. chmod 555 styles
  • ssi folder virtual links - mkdir ssi - change into ssi directory
    • header.shtml - ln -s -f /ip/iunhome/www/sitessi/header.shtml
    • search.shtml - ln -s -f /ip/iunhome/www/sitessi/search.shtml
    • footer.shtml - ln -s -f /ip/iunhome/www/sitessi/footer.shtml
      • after you are done editing, lock the ssi folder - chmod 555 ssi
  • Set secured side virtual links - read: Special note for .shtml web pages in the secured area
  • Securing site /folder from Search Engines while testing.

Now that your site is set for the files, you need to edit the template files by doing the following:

  • Globally search for ~iun5 and replace with ~testaccount or ~liveaccount actual name.
  • Globally search for Department and replace with actual name of Department.
  • Open contactus.shtml to edit and update.
  • Open Staff/index.shtml to edit and update.
  • Open Faculty (if appropriate) to edit and update.
  • Upload the pages to the website.

Your secured pages will give a "This page contains both secure and non-secure items." error. To avoid the errors you need to make some changes. Below user your web account name for yourwebaccountname. Use PuTTY SSH to connect to your website. Change directory to be in the wwws directory, Make virtual links by typing the following in the in the wwws area:

From the wwws side do the following:

Type in wwws directory
Makes Virtual Link to
ln -s -f /ip/yourwebaccountname/www/img img
ln -s -f /ip/yourwebaccountname/www/ssi ssi
ln -s -f /ip/yourwebaccountname/www/styles styles
ln -s -f /ip/yourwebaccountname/www/links.shtml links.shtml
be sure to change links.shtml photo to:
https://www.iun.edu/~yourwebaccouintname/img/temppic.jpg
-- or error message will exist in secured area.
  • Go to the account and test.

Edit the rest of the pages and set the new links for the appropriate pages.