My website will not work with the www prefix

If you opt to default to the www prefix, all requests for yourdomain.com will redirect to www.yourdomain.com using the search engine friendly 301 redirect. The opposite is true if you opt to default to NOT using the www prefix.

You can find this option in Plesk by clicking on the "Hosting Settings" link beside the domain you wish to configure. Look for the "Preferred Domain" option and set it to your preferred option.

Warning: if you set the option in Plesk to the opposite of how your "Site URL" is configured in WordPress (or similar settings in other web apps) you will create a redirect loop where the web server is pointing to one option and your web app then attempts to load the opposite. Be sure that your preference of using the www or not using the www matches in Plesk and your web application of choice.

If you are using Plesk 9.x here's how to fix this:

  1. Log in to Plesk and choose Domains
  2. Click on the domain that is encountering this problem
  3. Click on the "Domain Administrator" button
  4. The first option should have an unchecked box next to "www." Check this box and click okay. It may take a few minutes to several hours for the changes to take place

When adding a domain in Plesk, it provides a quick setup process where this option appears. Unfortunately it can be easily skipped (by clicking finish rather than next) or overlooked. Remember to read through the options carefully when adding a domain in Plesk.

  • 2 Users Found This Useful