Yearly Archives:: 2011

GZIP HTML Content on Shared Hosting

Posted by & filed under Coding.

Read more on "GZIP HTML Content on Shared Hosting" »

If you host your website on a shared Apache hosting account, it’s highly unlikely that you will have access to the httpd.conf file to set default GZIP compression for your website files. A quick and simple alternative is to set GZIP compression on each page so that you can effectively compress the HTML output content [...]


Rewrite URLs on Apache with mod_rewrite

Posted by & filed under Coding.

Read more on "Rewrite URLs on Apache with mod_rewrite" »

Is your website accessible by typing www.yourdomain.com as well as yourdomain.com, well using mod_rewrite on Apache servers you will be able to control how your URL structure is displayed whichever way the user types in your address. Controlling the URL structure is in fact more important than some people realise. I have used mod_rewrite on [...]


Using PHP Includes for Global Navigation Links

Posted by & filed under Coding.

Read more on "Using PHP Includes for Global Navigation Links" »

If you look after any large sites you will likely know how frustrating it can be when you need to make even minor changes. This can be something as simple as adding a new page to the global navigation. Traditionally you would need to manually edit every page on the site by adding the relevant [...]