Category: Admin Tools

How to redirect wrong URLs to another web server with .htaccess?

At times, visitors might go to a non-existing page on your website. In this case, they will be presented with an error message, in most cases the 404 error message, indicating that the requested page is no longer there. If this happens, you can redirect the visitor to another web address using the .htaccess file. …

Continue reading

How to enable IP-based website authentication with .htaccess?

If you want to make a part of your website visible just to certain visitors, you can enable website authentication. This way, only visitors with the right IP address can see your website. You can do that using the .htaccess file. First, set the folder in which the .htaccess file will be created, using the …

Continue reading

How to add additional MIME types with .htaccess?

MIME is the standard for attaching non-text files, such as images, audio, documents, etc., to e-mails. By default, only the “text/html” MIME type is supported. You can add additional MIME types using the .htaccess file. First, set the folder in which the .htaccess file will be created, using the .htaccess location form at the top …

Continue reading

How to enable website authentication with .htaccess?

If you want to make a part of your website visible just to a certain group of users, you can enable website authentication. This way, only people who know the username and the password you have specified can enter. You can do that using the .htaccess file. First, set the folder in which the .htaccess …

Continue reading

How to set the default index page with .htaccess?

By default, when you open a website, you will see the contents of the index.html or the index.php file. With .htaccess, you can set any of your files to act as an index file. First, set the folder in which the .htaccess file will be created, using the .htaccess location form at the top of …

Continue reading