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.
- login in to your admin panel
- go to settings options in left side bottom
- select General Settings
- add " WWW " in the begaining of both below fields. WordPress Address (URL) Site Address (URL)
- save and login again. You are done now.
Best Regards.
Author by
Kyle Suss
Updated on June 04, 2022Comments
-
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?