Table of Contents
In some cases, you want to redirect from Non-www to www through a Cyber panel on your website. When a visitor type https://bonguides.com in the url address bar then hit enter. He would be redirect to https://www.bonguides.com instead of https://bonguides.com.
Add the A Records
Before you begin, you need to add an A record for the www version of your site. We use Cloudflare to point the IP address to our domain. This step would be vary depending on your domain registrar.
![H6KgeixIeaInVre6aGabYa4UIISDcTTJ73e1ErCVIRwkz0WSQltbP4g6KA9j](https://s3.amazonaws.com/s3.bonben365.com/files/2023/H6KgeixIeaInVre6aGabYa4UIISDcTTJ73e1ErCVIRwkz0WSQltbP4g6KA9j.jpg)
Redirect Non-Www To Www In CyberPanel
1. Open the CyberPanel Dashboard | Websites | List Website.
2. Click on the Manage button given on the right corner so that you can manage the selected website and access all its files.
![OshdRWBkgQn6mcjf1B8vivK2J0tgY63spciU0iE9u5WPuYe7rNnAlyJjvHjf](https://s3.amazonaws.com/s3.bonben365.com/files/2023/OshdRWBkgQn6mcjf1B8vivK2J0tgY63spciU0iE9u5WPuYe7rNnAlyJjvHjf.jpg)
3. Go to the section of the configuration below where you will see the option of Rewrite Rules.
![Hd6kUAthG6rBV4tKjpqEjMHk33gvpgx2W3iKji09mriV5Kko5AA4e53fIiUe](https://s3.amazonaws.com/s3.bonben365.com/files/2023/Hd6kUAthG6rBV4tKjpqEjMHk33gvpgx2W3iKji09mriV5Kko5AA4e53fIiUe.jpg)
4. You have to select the Force NON-WWW -> WWW option in the Select Template section. After selecting, a simple code will be generated automatically in the below htaccess file which will redirect your website from NON-WWW -> WWW.
![bwuc4CDRR8i3ymbnJJd7YF3zZ9fJcu5or8IeerscvOKEZTLTnblZgBD1e42q](https://s3.amazonaws.com/s3.bonben365.com/files/2023/bwuc4CDRR8i3ymbnJJd7YF3zZ9fJcu5or8IeerscvOKEZTLTnblZgBD1e42q.jpg)
5. Click Save Rewrite Rules button and then after opening your website, it will start redirecting to www automatically.
![mdp2idhs8p0prsezehy1546678](https://s3.amazonaws.com/s3.bonben365.com/files/2023/mdp2idhs8p0prsezehy1546678.gif)