Generate .htaccess redirect rules for your website to redirect from www to non-www or vice versa.
This tool was created and uploaded by a community developer.
An .htaccess redirect is a server-level instruction that automatically redirects visitors from one URL to another. It's commonly used to redirect www to non-www versions of a website or vice versa.
A 301 redirect is a permanent redirect that tells search engines the page has permanently moved. This helps preserve SEO value and ensures users always reach the correct version of your site.
Place the generated code in your .htaccess file in the root directory of your website. If you don't have an .htaccess file, you can create one.
No, all processing happens in your browser. We don't store or transmit your domain information to any server.