WordPress was originally a Web-publishing platform frequently used for Web logs, or “blogs” that focuses on speed, ease of use and user experience. WordPress is…
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…
Under PHP you need to use header() to send a raw HTTP header. Using headers()method, you can easily transferred to the new page without having…
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…