htaccess Tutorials | Hostinger https://www.hostinger.co.uk/tutorials/htaccess Fri, 01 Mar 2024 21:52:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 https://www.hostinger.com/tutorials/wp-content/uploads/sites/2/2017/04/cropped-hostinger-fav-32x32.png htaccess Tutorials | Hostinger https://www.hostinger.co.uk/tutorials/htaccess 32 32 How to Block IP by Country: Restrict Access to Your Website from Specific Countries Using .htaccess https://www.hostinger.co.uk/tutorials/htaccess/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess https://www.hostinger.co.uk/tutorials/htaccess/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess#comments Fri, 15 Nov 2019 02:54:13 +0000 http://blog.hostinger.io/hostinger-tutorials/%category/htaccesshow-to-allow-or-block-visitors-from-specific-countries-using-htaccess/ This quick and easy tutorial will show you how to control site access based on visitors’ location. With some tweaks to the .htacess file, it’s possible to allow or block visitors from certain countries. Keep reading! Allowing or Blocking Visitors From Specific Countries Using .htaccess Once launched, a website is available worldwide. However, in many [...]

Read More...

The post How to Block IP by Country: Restrict Access to Your Website from Specific Countries Using .htaccess appeared first on Hostinger Tutorials.

]]>
https://www.hostinger.co.uk/tutorials/htaccess/how-to-allow-or-block-visitors-from-specific-countries-using-htaccess/feed 17
How to Locate and Create .htaccess File – A Step-by-Step Guide https://www.hostinger.co.uk/tutorials/locate-and-create-htaccess https://www.hostinger.co.uk/tutorials/locate-and-create-htaccess#comments Thu, 31 Oct 2019 13:13:21 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/htaccesshow-to-locate-htaccess-file-on-cpanel-file-manager/ .htaccess (hypertext access) is a hidden file used to configure additional features for websites hosted on Apache Web Server. With it, you can rewrite URL, password-protect directories, enable hotlink protection, disallow access to specific IP addresses, change your website’s time zone or alter default index page, and much more. Here you’ll learn how to locate [...]

Read More...

The post How to Locate and Create .htaccess File – A Step-by-Step Guide appeared first on Hostinger Tutorials.

]]>
https://www.hostinger.co.uk/tutorials/locate-and-create-htaccess/feed 32
How to Use directoryIndex and .htaccess to Change Your Site’s Default Index Page https://www.hostinger.co.uk/tutorials/change-index-page-in-htaccess-with-directoryindex https://www.hostinger.co.uk/tutorials/change-index-page-in-htaccess-with-directoryindex#comments Wed, 15 Mar 2017 00:00:00 +0000 http://blog.hostinger.io/hostinger-tutorials/%category/htaccesshow-to-change-your-default-index-page-in-htaccess/ In this article, we will show you how to change and modify the first page of your website using the directoryindex command in the .htaccess file. Let’s check it out! How Does it Work? When you open a website on any browser, a typical web server will look for a file called index.html or index.php [...]

Read More...

The post How to Use directoryIndex and .htaccess to Change Your Site’s Default Index Page appeared first on Hostinger Tutorials.

]]>
https://www.hostinger.co.uk/tutorials/change-index-page-in-htaccess-with-directoryindex/feed 13
.htaccess Deny from All: How to Restrict Site Access https://www.hostinger.co.uk/tutorials/htaccess/how-to-restrict-access-to-your-website-for-everyone-except-you https://www.hostinger.co.uk/tutorials/htaccess/how-to-restrict-access-to-your-website-for-everyone-except-you#comments Wed, 01 Jun 2016 00:00:00 +0000 http://blog.hostinger.io/hostinger-tutorials/uncategorized/htaccesshow-to-restrict-access-to-your-website-for-everyone-except-you/ If you’re currently testing your site or setting it to maintenance mode, you might want to restrict visitors from accessing it. You can do so by adding the deny from all command to .htaccess. In this tutorial, we’ll show you exactly how to do it. But first, let’s take an in-depth look at the .htaccess [...]

Read More...

The post .htaccess Deny from All: How to Restrict Site Access appeared first on Hostinger Tutorials.

]]>
https://www.hostinger.co.uk/tutorials/htaccess/how-to-restrict-access-to-your-website-for-everyone-except-you/feed 4