ABOUT .HTACCESS
On web servers running the Apache Web Server software the .htaccess configuration file can be placed.
.htaccess is an abbreviation for Hyper Text access. When this file is placed the Apache Web Server
will detect and execute the commands in this file. This file can be used to:
- Alter configuration of Apache Web Server
- Enable/disable functionality and features
- Handle redirects
- Protect passwords
- Deny access toy visitors by IP address
- Redirect visitors
There are other additional functions that the .htaccess file can be coded to perform. The name of the
file cannot be changed or an extension added to it. In case you change the name or save it with an
extension and upload it; it will not be recognized. If you have used a Content Management System
like Drupal, Joomla or WordPress you might have encountered this file. You might also have edited
it. Some web servers do not allow you to edit it. But you can create your own file and upload it to
specific directories.
.htaccess redirect generator
Placing all the commands that webmasters might want in the .htaccess file on the web server requires
them to know html code. Yes, the commands for the .htaccess file to execute can be created using a
text editor but cannot be placed as a tool.
To perform a redirect from non-www to www or from www to non-www thereβs a .htaccess tool available
on toolslite.com. if you want the tool to generate the code to include in your websiteβs
.htaccess file, navigate to toolslite.com from your search browser. On the site scroll down to
the .htaccess redirect generator tool icon and click on it. It has two options;
- Redirect from www to non-www
- Redirect from non-www to www
The default selection is the first option. Enter your domain name and press βget your codeβ button.
Thereβs a captcha that will require verification. Once you have done that the code generated will be
displayed in the Results box. Now you can copy the code from here and paste it in your .htaccess
file.
After successfully updating the .htaccess file it will perform the redirect function. Now the website
visitors will be redirected to another site seamlessly,