Stuff that occurs to me

All of my 'how to' posts are tagged here. The most popular posts are about blocking and private accounts on Twitter, also the science communication jobs list. None of the science or medical information I might post to this blog should be taken as medical advice (I'm not medically trained).

Think of this blog as a sort of nursery for my half-baked ideas hence 'stuff that occurs to me'.

Contact: @JoBrodie Email: jo DOT brodie AT gmail DOT com

Science in London: The 2018/19 scientific society talks in London blog post

Tuesday, 17 November 2015

Worked example: redirecting some pages on the work website

Edit 18 November 2015: this worked

I am fiddling about with the work website - and we've moved some bits and pieces around so that the architecture makes sense.

Some of our older links of course now don't work but I still want them to as they're listed on other people's websies already and I want it to be easy / seamless without people having to update their URLs.

According to this website I am to create a file in the relevant folder and call it .htacess and then add the line

Redirect  /path-of-file-to-be-redirected  URL-of-page-to-go-to

That's all very well if it's just one page but I have several, as follows.

Redirect /research/infusionpumps/index.php
Redirect /research/infusionpumps/architecture/index.php
Redirect /research/infusionpumps/hazardanalysis/index.php
Redirect /research/infusionpumps/hcihumanfactors/index.php
Redirect /research/infusionpumps/modelbaseddesign/index.php
Redirect /research/infusionpumps/verification/index.php
Redirect /research/infusionpumps/dataloggers/index.php

I don't know if I should add them all in the single .htaccess file, or make an individual file for each page and number them .htaccess1 etc (not even sure if that would work).

Going to find out though...

This is what I'm after

No comments:

Post a Comment

Comment policy: I enthusiastically welcome corrections and I entertain polite disagreement ;) Because of the nature of this blog it attracts a LOT - 5 a day at the moment - of spam comments (I write about spam practices,misleading marketing and unevidenced quackery) and so I'm more likely to post a pasted version of your comment, removing any hyperlinks.

Comments written in ALL CAPS LOCK will be deleted and I won't publish any pro-homeopathy comments, that ship has sailed I'm afraid (it's nonsense).