Examples of .htaccess rewrite rules Enable directory indexes Options +Indexes Blocking certain IP-addresses <RequireAll> Require all granted Require not ip 1.2.3.4 Require not ip 12.34.56.78...
Restricting access to a website with .htpasswd If you want to temporarily restrict access to your website, one way to do this is to use the .htpasswd...
Limiting the .htaccess file size to 512 KiB In a shared hosting environment, the size of .htaccess files is limited to 512 KiB to ensure proper functioning of...
301 redirect with .htaccess file To redirect web-traffic the following lines of code are entered with text editor (Notepad, WordPad etc.) and then saved as...