.htaccess Redirect Generator | SEO Tool Base - Top Free SEO Tools

Search Engine Optimization

Htaccess Redirect Generator


1. Select redirect type





2. Enter your domain name


Do not include www. Domain name only - e.g. yourdomain.com

3. Get your code


4. Copy the code to your .htaccess file



About Htaccess Redirect Generator

HTACCESS Redirect Code Generator

Htaccess generator is a best powerful tool provided by SEO Tool Base which is used to redirect any domain from www to non www or non www to www. This tool gives you a code which used in a cpanel and ftp. Thi file always gives the best priority of a domain file .htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer. So doing a better configuration we use htacess file. In a digital marketing point of view, we are redirecting the url as www which removes the canonical error of website which is must be compulsory in nowadays for better optimization of a website.

WWW or Non-WWW: Which should I go for?

The truth is, whichever you go for doesn’t really matter, it is not that important, like for example Http to https. It all boils down to your personal preference. Oftentimes, most webmasters decide between nonwww to www or to redirect www to nonwww based on aesthetics. Non-www URLs are shorter and oftentimes cooler to look at, compared to their www counterpart. Other than that, there’s nothing else. None has an SEO advantage over the other, and none has a faster load time than the other. What matters is specifying which format you prefer, and then redirect visitors to your chosen URL format.

What is .htaccess file?

.htaccess is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn 'loaded via the Apache Web Server', then the .htaccess file is detected and executed by the Apache Web Server software. The .htaccess file is a powerful website file that controls high-level configuration of your website. On servers that run Apache (a web server software), the .htaccess file allows you to make changes to your website's configuration without having to edit server configuration files.