You can cache the static files and improve your website’s performance. File caching is another famous approach in optimizing website loading time. Search engine will…
If you want to redirect from an old document to new: Redirect 301 /old/file.html http://yourdomain.com/new/file.html Use following for redirecting Entire Directory. RedirectMatch 301 /blog(.*) http://yourdomain.com/$1
Environment variables contain information used by server-side includes (SSI) and CGI. Set / Unset environment variables using SetEnv and UnSetEnv. SetEnv SITE_WEBMASTER “Jack Sprat” SetEnv…
If you run the risk of someone accessing your php.ini file directly through their browsers, you can limit access to them using htaccess file. Put…
If you are running php websites, and a php includes folder that is only used for the calling of your own php scripts. I know…
Error pages of your website like 404 not found, 403 access forbidden pages contains server signature i.e. server version number, operating system etc., such information…
Normally your server timezone is set to its local timezone. But as a webmaster, you can set your website timezone by date.timezone directive in htaccess…
If you want to protect your wordpress website admin folder wp-admin folder by htaccess file. You can check How to deny IP address to your…
To disable or prevent the directory access by browsers, you can add following code in your .htaccess file. If user points the browsers to a…
IF your website is using cpanel system, your website root directory should be /home/yourusername/public-html directory. When anyone want to visit your website, the apache server…