I've got a PHP 5.4 website with two subdomains: www.example.com and example.com. I want to redirect all traffic from example.com to www.example.com. What's the easiest way to do this on Webfaction? asked 29 Apr '12, 10:18 callum |
You should be able to achieve this by following our Redirect a Domain with a Static/CGI/PHP App guide in the documentation section. answered 29 Apr '12, 10:25 iliasr ♦♦ Thanks for the answer. It's a shame WebFaction makes you create a whole new 'application' just to do this redirection. Redirecting non-www to www (or vice versa) is a VERY common requirement, and other hosts make it easy with a checkbox in the control panel. Oh well.
(26 May '12, 07:52)
callum
This is in no way required - there are many ways to do the redirection, for example using mod_rewrite rules. This is just the most straightforward way, and it's covered in our docs, while if you want to use Rewrite rules instead, you might need to look into the Apache docs on those.
(26 May '12, 08:12)
todork
|
If you are using WordPress, the redirection can be configured easily within the admin page of your WP blog. answered 26 May '12, 10:29 Romel |