Please consider the following when naming files
- Irish language and internationalisation
The following should help you produce a good readable URL
- Make the filename all lowercase
- Remove spaces
If removing all spaces make the filename ambiguous replace spaces with hyphens
- Use a limited set of characters, for example only a to z, 0 to 9 and hyphens ("é" replace with "e", "&" replace with "and" etc.)
- Remove non-essential words like "and", "or", "the", "with" etc. so you are left with keywords
- Where possible limit technology indicators (.php), see the section below for complete instructions
- Remove repeated words, with respect to the final URL
For example the following steps illustrate how to go from
tcd.ie/area/research/Our Research News & Events.php
and finish with
- our research news & events.php (filename made lowercase)
- our-research-news-&-events.php (spaces replaced with hyphens)
- our-research-news-and-events.php (limit the set of characters being used)
- research-news-events.php (remove non-essential words)
- research-news-events/index.php (limit technology indicators)
- news-events/index.php (remove repeated words, "research" was already in the final URL therefore better removed in this instance)
- The final URL becomes tcd.ie/area/research/news-events/
Please see the ISS website for further details on Naming Files & Folders and Using Appropriate URLs.
Where possible limit the technology indicators (.php)
For example start with:
and finish with
- Using tcd.ie/area/research/news-events.php by example
- In the research folder, create the folder news-events/
- Move news-events.php into the newly created folder
- Rename news-events.php to index.php
- You should now have tcd.ie/area/research/news-events/index.php
- This page can now be viewed in the browser in two ways
Let's say you have a PDF brochure relevant for the academic year 2014-2015 ready to upload. Do you name it "brochure.pdf" or "brochure-2014-2015.pdf" or both?
- If no online archive of the brochure is wanted then name it "brochure.pdf"
Each following year overwrite "brochure.pdf" with the latest version. People can bookmark this document without updating the bookmark in future and websites links point to this document and can remain the same year-on-year
- If an online archive is wanted, which means you want to provide access to historial versions of the brochure, name it "brochure-2014-2015.pdf"
Each following year upload another document with the date in the URL e.g. "brochure-2015-2016.pdf", "brochure-2016-2017.pdf" etc.
- If an online archive and latest information of the brochure is wanted then provide two documents "brochure-2014-2015.pdf" and "brochure.pdf"
Make sure to limit linking to "brochure-2015-2016.pdf" to only when referring to the archive version, for example from an archive listings page. For all other links use "brochure.pdf" as it represents the latest information
If the brochure is a web page the following URLs would be equivalent to those given above: "brochure/index.php", "brochure/2014-2015.php"
Irish language and internationalisation
An Irish language page will typically be an equivalent of an existing page. If this is the case they are named as follows to best integrate with a language switcher on the website:
- If the existing page is /contact/index.php, name the Irish language page /contact/index.ga.php
- If the existing page is /contact.php, name the Irish language page /contact.ga.php.