301 Htaccess Redirect Generator

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

About The Htaccess Redirect Generator

The Htaccess Redirect Generator is a free online tool that will allow you to generate the htaccess file. The htaccess is a small text file that can be found in the root directory of your website. This is the same place where the index.html or index.php is located. The file provides you with the means to correspond with the Apache server. People can, by default, gain access to a website through the www or non-www URL.

However, you need to know that Google and fellow search engines are punishing these websites in the same way they would treat duplicate content. You, therefore, have to choose between people using "example.com" or "www.example.com" to access your site. To do this, you will have to redirect your "example.com" to "www.example.com" or the other way round through the htaccess file. Something worth noting is Google emphasized that the redirect has to be 301; with the 301 redirect generator tool, it will be easy to achieve this.

Given the small size of the htaccess file, it makes it difficult to add content to it. A single mistake is all it takes to damage your website. It is for such reasons that we came up with this crucial tool; it makes it easy for you to create content which will necessitate redirecting a site’s URL to another one, ensuring that you are not a culprit of Google’s duplicate content issues.

After you have done that, you should try to see whether or not the code will successfully work on your website. You can use our www Redirect Checker tool to do this. Being able to configure a customer’s websites correctly is an important aspect for any search engine. This is because when these search engines are crawling your site, it ensures they can follow the redirects you have inserted. Use the 301 redirect htaccess generator tool to check your website redirect.