Use of .htaccess file
Basic Use of .htaccess file Force HTTPS RewriteEngine OnRewriteCond %{HTTPS} !=onRewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Redirect from old page to new page Redirect 301 /old-page.html https://example.com/new-page.html Custom 404 Page ErrorDocument 404 /custom-404.html Prevent directory listing Options -Indexes Enable gzip compression AddOutputFilterByType DEFLATE text/html text/css application/javascript
Read More