A webmaster may know hundreds of commands, but what he really must have is the .htaccess file on the web server and for that, he needs to know the HTML code. In fact, commands to execute .htaccess files can be created using a text editor, but they cannot be placed as tools.
In order to be able to redirect from "no-www" to "www" or vice versa, you can use the .htaccess tool available on different SEO tool websites. You can also navigate from your search engine to make the tool generate the code that will be included in the .htaccess file of your website. On most sites you will find the .htaccess redirection generator tool icon with only two options:
-Redirect from "www" to "no-www".
-Redirect from "no-www" to "www".
In most cases, the first option is used. However, you only need to enter the domain name and press the button to get the code. Some websites have a Captcha to verify that you are not a robot. After you have confirmed the generated code will be displayed in the Results.