Htaccess Redirect Generator FREE Seotool


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 FREE Seotool

htaccess redirect, www to non-www , non-www to www

TOP 5 TOOLS

What is .htaccess Code?

The web hosting server where Apache software is installed, a .htaccess is configuration file with name “.htaccess” that control the basic site behavior of a website. .htaccess is the abbreviation for HyperText access. This file is placed in the root directory of an Apache Web Server and in the start, this is hidden, we have to show hidden files to view it. This file will find and run following commands in the server. Also, check your server status with the useful tool "Server Status Checker". This file will perform the following tasks for you.

  • Controls the configuration of Apache Web Server
  • Enable/disable functionality and many features
  • Handle www and Non-www redirects
  • Protect the login users information and  passwords
  • Can block or access the IP address access to the website
  • Can Redirect visitors to other websites or links

There is a big list of the other control that .htaccess file can perform. We cannot change the name of the file or the extension of the file. The Apache server will only consider the file name and extensions of (.htaccess) in the root directory and ignore all other names or extension for this purpose. 

How to create a .htaccess file in notepad?

A fully functional file with some line codes can be made in any kind of text editor. You can your TextPad, WordPad, Sublime Text, Atom, notepad++ or Microsoft WordPad. But this is to be remembered that windows Microsoft Notepad cannot be used for this file editing. This file can be used for any kinds of functions like password protection, specific page redirections, file error handling or redirect to a custom page if user login fails. The file made for .htaccess can be very simple or long written according to the use of the file and functions. You can upload your file in an online server via any kind of FTP client or directly in Cpanel file uploader page but use only the ASCII mode to upload your, otherwise, the file may not work properly. If you use a Binary system to upload, then the file may get errors. The Apache server keeps this file hidden in the default way, but you can be it buy searching hidden files. The .htaccess file in kept in the main root directory of any website.

The main feature of the .htaccess file:

Redirects function:

You can use a .htaccess file to direct a page or website to other ones. The webmasters and the site owners mostly use the line of codes in their .htaccess file to send some special links to the specific pages. 
This function can send your visitors to any website with a hidden detail. If you wish that user may not see the specific page, then you can redirect it in the .htaccess file to send him other locations. Check if your page is set with a redirect function with a simple tool "www Redirect Checke tool".

 

Error handling:
You may see that if you mistakenly visit a wrong page, then the page is redirected to some specific designed pages, displaying that, an error has occurred, you can view that page later. If the page is not set to some specifically designed page, then user get annoyed and will not come to this site again. So some pages like 401, 404, 500 are designed to set special message by redirecting it to working pages. So we simply get good user interface by providing some good useful information to our visitors. 

The .htaccess file is very useful when it comes to handling errors. Visitors get irritated when they encounter an error message like a 401, 404, 500 message on a website. This is where the .htaccess file can be used to display a friendly message to visitors in case they face any problem in accessing your website.

 

Password Protection:

The Password Protection is a big feature of this file. The 
The .htaccess file can have some special instructions that will save your password and users information and will not be visible publically. You may have the thing that most of the top quality websites have also password protection features, that make the visitors more secure and built their trust on the website. If you own username and password, you will feel good to log in, without having any information. 


Deny. Block or allow special Visitors:

The .htaccess file has a very special feature that the default Cpanel of web hosting service use with the special user interface. By the use of these features, you can deny special visitors via tracing an IP address, block it permanently, or allow only some special IP addresses.  Check your IP address with a simple "what is my IP address" tool. The unwanted traffic can be blocked with some simple line of codes in the .htaccess file located in the root directory to save your website and server. 
The top Organizations, government websites, and E-commerce websites use this feature to stop visiting their websites.
 

The .htaccess redirect generator


The .htaccess redirect generator is the most useful and common tool that helps the webmaster in a very professional way. You may have some great expertise in working the HTML coding or Php functions. The .htaccess tool has a very good function to redirect your pages to finalize your www or non-www version of the website. 
Our tool is very simple and useful in this regard. 
To execute a redirect from non-www to www or from www to non-www this is very special tool with a simple interface that will work 100% for you and you will see the magic by the code that is generated by .htaccess redirect generator tool.  If you want to convert your website from www to non-www for non-www to www then you have a very simple tool that will do everything for you. Simply add your website version without http:// or https:// and selection your desired format. Press “Get .htaccess code” and you will see the code is generated for you to implement on your website. Get your Get HTTP Headers with a simple "Get HTTP Headers tool".
 
And its time to copy the generated codes in the .htaccess file that is placed in the root directory. 
After updating the file, you will see that the website is changed from www to non-www or non-www to www version. That is according to your own choice. I like the non-www version, as it shortens the 4 characters to type and sees in search results.