My site uses a bare domain, example.com.

I want to use Google's Page Speed Service, which requires a www subdomain, like this www.example.com

Google says the server must use a 301 redirect.

What is the best way to do this? Can I simply change the WP General Settings and add the www there?

  • You need to apply .htaccess rules to do this. Commented Mar 8, 2014 at 12:27

1 Answer 1


You can change it at settings -> general, update Site address and wordpress address.

With my site wordpress automatically redirects the domain to www.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.