Posts Tagged: web design

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 [...]


Truncate SimplePie Content with PHP

Posted by & filed under Coding.

Read more on "Truncate SimplePie Content with PHP" »

This article is a follow-up to an earlier blog post about using SimplePie to display an RSS feed on your website. Sometimes it can be useful to ensure that a piece of content stays on a single line (e.g. a title), or make sure that some text stays to less than 255 characters (e.g. a [...]