Htaccess redirect generator can be used for htaccess redirect, www to non www, or non www to www when configuring a website.