Category: Server
htaccess trick – redirect to WWW domain without hardcoding the domain name

I’m notoriously bad at writing good htaccess redirection rules, so when it came time to write a rule that would redirect any non-www URL to its www equivalent, I was a bit lost. I wanted a rule that I could apply to any website without needing to hard-code the domain. I found a few examples after some Google searching, but [...]

By Jamie with 2 comments