One of the security method of your WordPress website is to put a stop to browsing of directory. By default when your web server does…
For Detail htaccess file Usages and how to create it, please check htaccess file knowledge base Millions of WordPress users use the .htaccess file to…
Here is a useful method for delivering multimedia file downloads to your users. Typically, browsers will attempt to play or stream such files when direct…
You can use Mod_Rewrite to deny requests containing invalid characters, RewriteEngine On RewriteBase / RewriteCond %{THE_REQUEST} !^[A-Z]{3,9}\ [a-zA-Z0-9\.\+_/\-\?\=\&]+\ HTTP/ [NC] RewriteRule .* – [F,NS,L] You…
If you want all your cgi, php, perl, py scripts not to run, but just display as source code. htaccess fil can help you by…
php_value upload_max_filesize 20M php_value post_max_size 20M php_value max_execution_time 200 php_value max_input_time 200 In the above .htaccess file, uploading capability is increased by the four parameter…
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…
Sometimes you donot need to run php code in all your folder such as your image folder. In your Image folder, add following codes: order…
we can redirect the non SSL query to your website to SSL port by using .htaccess file.This will help you to access the websites from…
Common Gateway Interface is abbreviated to CGI. This is a standard way for web servers to interface executable scripts with end users. Those executable scripts…
Server Side Includes (SSI) is a simple interpreted server-side scripting language used almost exclusively for the Web.The most frequent use of SSI is to include…
In case your web hosting account is not configured to server certain mime types with the proper content type. You can change this using .htaccess…
The index of a directory can come from one of two sources: A file written by the user, typically called index.html. The DirectoryIndex directive sets…
We often seen that some unidentified bots relentlessly use bandwidth of website that cause the loading speed of website become slow and affects the ranking…
The hot link Protection technique allows you to prevent other websites from directly linking to files on your website. This is most commonly used to…
When you notice a surprising increase in traffic and check your logs one day, and see tons of referrals from a particular site, yet upon inspection…
Protecting files on your website from unauthorized users can be very important. You could use PHP to listen for login authorization information on each page,…
Redirects enable us to direct web site visitors from one document within your web site to another directory within your website or another website’s directory…
To ban a single IP address from accessing your Website, add following code to the .htaccess file in the root directory of your html file. If…