How to use the .htaccess Generator

Home » Knowledge Base » Control Panel » .htaccess Generator » How to use the .htaccess Generator

The .htaccess file is a very powerful configuration file that allows you to make changes to your website without having the need to edit the web server config file. A couple of things that you can achieve with the .htaccess file are setting password protection, creating redirects, rewrites, and much more. In this article, we will go through the .htaccess Generator section available in our Hosting Control Panel.

 

How to access the .htaccess Generator

The .htaccess Generator can be found in the Hosting Control Panel of your Hosting Account. To access it simply follow the steps below:

  1. Log in to your Hosting Control Panel
  2. From the Dashboard choose the Hosting Tools menu
  3. Under Advanced Tools select the .htaccess Generator

 

What can you use the .htaccess Generator for?

The .htaccess Generator can assist you with creating a .htaccess file without much technical knowledge. There are a couple of features that you can use:

  • Access and Security
  • Error handling
  • File Operations
  • Redirections

These options can be selected from the .htaccess Generator form under Features.

 

Access and Security

Under the Access and Security tab you can generate a code that will:

  • Block traffic by the referrer
  • Block abusive bots
  • Enable/Disable Hotlinking Protection
  • Block/Allow traffic by IP
  • Block/Allow traffic by hostname

 

Error Handling

As the features suggest you will be able to set up redirects for the error pages of your website. For example, you can create custom error pages for your website and use the .htaccess Generator to generate the code which will redirect your visitors. You can also redirect users that visit non-existing pages to one specific page.

 

File Operations

With File Operations, you can set additional MIME types such as audio files. Such an example would be the following code for the .htaccess file:

AddType audio/mpeg .mp3

 

Redirections

With the redirection feature, you can set the default index page for your website. You can also use this option to create redirects from one page to another. For example, you can redirect from domain.com/old-page to domain.com/new-page. Another useful option is that you can set up a redirect depending on the country from which your visitors are.

 

How to generate the .htaccess file?

To generate the .htaccess file follow the steps bellow:

  1. Select the Location for your .htaccess file
  2. Select the feature from the list
  3. Select the option which you would like to add in the .htaccess file
  4. If necessary add the needed information for the feature
  5. Click on the Create .htaccess button

Once you have done that you will find the .htaccess file inside the specified directory with the necessary code.

Was this post helpful?

i

Relevant tags:

Connect

Latest posts:

How to Install Moodle

You can install Moodle on all AwardSpace web hosting plans. This includes our free web hosting, shared hosting, and the advanced AwardSpace services such as Semi-Dedicated Hosting and VPS hosting. You can also install Moodle in minutes, whichever you choose. Keep in...

How to Check If SELinux Is Enabled in MediaWiki

Although installing MediaWiki and logging in to the platform is a simple task, setting up the CMS can be challenging at times, especially when the process involves server configurations. A critical aspect of web server security is the so-called Security-Enhanced Linux...

How to View and Manage Recent Images in MediaWiki

MediaWiki offers numerous versatile tools that help you manage and display recent images on your wiki pages. This guide showcases how to view and manage recent images in MediaWiki, so you can make it easier for logged-in users and admins to organise image content on...

How to Enable and Customize User Glow in MediaWiki

Now that you have installed MediaWiki and logged in to the admin panel, and you also learned how to add modules, it is time to make your wiki a bit more engaging and user-friendly. There are numerous ways to customize your Wiki project and one handy approach is to add...

How to Find Modules in MediaWiki

After you install MediaWiki, log in to the CMS, and presumably install extensions, it is time to learn how to find modules in MediaWiki.   What are MediaWiki Modules Modules in MediaWiki are Lua-based scripts that allow you to add various functionalities to your...



Create a website for free!


Free forever

Our Support Team is Here to Help

 

If you need any questions answered, don't hesitate and contact us. Click the button below and follow the instructions. You can expect an answer within an hour.

 

Contact AwardSpace

 

iNewest knowledge base articles

How to Install Moodle

You can install Moodle on all AwardSpace web hosting plans. This includes our free web hosting, shared hosting, and the advanced AwardSpace services such as Semi-Dedicated Hosting and VPS hosting. You can also install Moodle in minutes, whichever you choose. Keep in...

How to Check If SELinux Is Enabled in MediaWiki

Although installing MediaWiki and logging in to the platform is a simple task, setting up the CMS can be challenging at times, especially when the process involves server configurations. A critical aspect of web server security is the so-called Security-Enhanced Linux...

How to View and Manage Recent Images in MediaWiki

MediaWiki offers numerous versatile tools that help you manage and display recent images on your wiki pages. This guide showcases how to view and manage recent images in MediaWiki, so you can make it easier for logged-in users and admins to organise image content on...

How to Enable and Customize User Glow in MediaWiki

Now that you have installed MediaWiki and logged in to the admin panel, and you also learned how to add modules, it is time to make your wiki a bit more engaging and user-friendly. There are numerous ways to customize your Wiki project and one handy approach is to add...

How to Find Modules in MediaWiki

After you install MediaWiki, log in to the CMS, and presumably install extensions, it is time to learn how to find modules in MediaWiki.   What are MediaWiki Modules Modules in MediaWiki are Lua-based scripts that allow you to add various functionalities to your...

How to Fix MediaWiki Internal Error: A Step-By-Step Guide

MediaWiki Internal Error message can be very frustrating and can significantly harm your MediaWiki project. Luckily, the issue can be fixed in a few easy-to-follow steps to get your website up and running in no time. There are various causes for the issue: Incorrect...

Even more web tutorials

Check out our web hosting knowledge base and the WordPress tutorials to learn more, and be better prepared for your website creation and maintenance journey.