1. Adding a ‘.htaccess’ File To Your Website

    Now let me just start by saying I am no expert in Web Development, or programming for that matter. But I know a nice piece of code when I see it!

    It was when I was experimenting with PHP that I learnt about the power of SimpleXML, and immediately thought how useful that could be for Twitter. So I wrote one line of code that would embed your latest Tweet in your website. 

    To get that working you need a ‘.htaccess’ file. Essentially this files let you run PHP script inside your HTML/XHTML Webpages.

    1. Create a new file names ‘.htaccess’ (without the inverted commas) in your favorite text editor.
    2. Put this line of code in that file, save, and close the file ‘AddType application/x-httpd-php .html .htm .xhtml’
    3. Upload this to your Web Host, into your root folder (the folder where your website lives)

    Hurray! Your ‘.htaccess’ file should now be up and running! If in doubt, contact your webhost.

    I take no responsibility if this does anything nasty to your website, so on your head be it! (But it really shouldn’t!)

    Enjoy!

    Finlay