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. – Rahil Wazir Mar 8 '14 at 12:27

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, privacy policy and cookie policy

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