PaulHowarth/Blog/2008-05-16

Friday 16th May 2008

SHAS Website

Earlier this week I finally managed to get the Sale Horticultural & Allotment Society website migrated over to my own machine from Freeola. I'd been trying on and off to get this done for the best part of two years, the hold-ups being due to the fact that the domain was registered long before I joined the society and the contact details hadn't been kept up to date, so it was difficult to actually do anything with the domain.

Now that the website is served from my own machine, I can use Apache features like XbitHack when doing server-side includes instead of having to rename pages to .shtml as I had to do when using Freeola's hosting. Of course, since the site has been there for a long time, the search engines all have links to the .shtml pages that no longer exist, so I needed a quick hack to provide the correct content when people followed those links. All that was necessary was a RedirectMatch directive in the site's VirtualHost container:

    # Search engines have cached .shtml links
    RedirectMatch       seeother (/.*)\.shtml$ $1.html


Recent