Forcing www or non www

The @anywhere callback on Twitters API can be slightly temperamental depending on whether or not you have defined www. in your application settings. For this reason, its best to ensure your users always get to the correct callback url using .htaccess.

[php]
## FORCE NON-WWW
RewriteCond %{HTTP_HOST} ^www\.paulor\.net [NC]
RewriteRule (.*) http://paulor.net/$1 [R=301,L]

## FORCE WWW
RewriteCond %{HTTP_HOST} !^www\.paulor\.net
RewriteRule (.*) http://www.paulor.net/$1 [R=301,L]
[/php]

Remembering to switch on the RewriteEngine of course :)