Redirect non-www on a Wordpress site without using .htaccess

10,630

Solution 1

If you try to access a WordPress site using anything other than the site address set in the general settings tab (Go to the admin panel, and click on "Settings" then "General settings" in the left side menu) it will automatically redirect you.

Solution 2

If you need non www pages / posts to redirect www url in simple way then follow this steps.

  1. login in to your admin panel
  2. go to settings options in left side bottom
  3. select General Settings
  4. add " WWW " in the begaining of both below fields. WordPress Address (URL) Site Address (URL)
  5. save and login again. You are done now.

Best Regards.

Share:
10,630
Kyle Suss
Author by

Kyle Suss

Updated on June 04, 2022

Comments

  • Kyle Suss
    Kyle Suss almost 2 years

    A developer that I worked with told me that we had the non-www version of the site redirecting to the www version using a Wordpress database setting, not the .htaccess file. Does anybody know how to do this?