Htaccess Redirect Generator

Select redirect type:

About .htaccess

The Apache Web Server software-powered web servers support installing the .htaccess configuration file. The abbreviation refers to hyper Text Access .htaccess. The Apache Web Server will recognise and carry out the commands in this file when it is placed. Uses for this file include:

  • Alter configuration of Apache Web Server
  • Enable/disable functionality and features
  • Handle redirects
  • Protect passwords
  • Deny access to visitors by IP address
  • Redirect visitors

The .htaccess file can also be programmed to carry out various extra tasks. The file's name cannot be altered, nor can an additional extension be added. It won't be recognised if you rename it or save it with an extension before uploading. You may have come across this file using a content management system like Drupal, Joomla, or WordPress. You may have also modified it. You cannot modify it on all web servers. However, you can produce your own file and upload it to particular locations.

How to Create .htaccess file

Using a reliable text editor, such as TextPad, UltraEdit, or Microsoft WordPad, you may create the .htaccess file. Microsoft NotePad is not an option. Password protection, redirecting to a custom error page if a user cannot log in, and redirecting to a custom page if a user encounters an issue are all options. Depending on the functionality you wish to add, a .htaccess file may include one or many lines. You will want an FTP (File Transfer Protocol) application to upload the file. Additionally, the file must be uploaded in "ASCII" mode. Some FTP applications upload files by default in "BINARY." You must alter it to "ASCII" if such is the case. The file should be uploaded to the directory where you wish it lived. You might not see it if you look at the files in the directory for your website since the web server's software is likely concealing it.

How to use the .htacces redirect tool

Webmasters must be familiar with HTML coding to put all the commands they could need in the .htaccess file on the site server. Text editors can be used to construct the commands that the .htaccess file needs to run, but they cannot be set up as tools.

On freepion.com, a .htaccess tool is provided to execute redirects from non-www to www or from www to non-www. Go to freepion.com from your search browser if you want the tool to produce the code to put in your website's .htaccess file. Go to the .htaccess redirect generating tool icon on the website and click it. There are two choices;

  • Redirect from www to non-www
  • Redirect from non-www to www

htaccess redirect generator tool

The first choice is the default choice. Click the "receive your code" button after entering your domain name. There is a captcha that has to be verified. Once you've done so, the Results box will show the created code. The code is now ready to be copied from this page and pasted into your .htaccess file.

The redirect function will be executed when the .htaccess file has been successfully updated. The website visitors will now be effortlessly transferred to another site,


Noor Muhammad

CEO / Founder

"Success isn’t Always about Greatness. It’s about Consistency" - I Noor Muhammad founder of RaviHost. FreePion is a proud product of RaviHost. We at RaviHost are fully determind to provide you 100% free SEO and digital marketing tools. You can use our tools freely and recommend to your friends.