Posted on 15 January 2012. Tags: .htaccess, cache, memory
This trick isn’t guaranteed to prevent all WordPress-generated PHP memory errors, but it certainly seems to help reduce their overall occurrence. For some reason, after my host upgraded their servers to Apache 1.3.41, I began logging an extremely high number of fatal PHP “memory exhausted” errors resulting from the WordPresscache.php script. Here is an example of the countless errors that are generated:
Read the full story
Posted in PHP
Posted on 04 December 2011. Tags: .htaccess, word press, wp
Recently I’ve become more and more interested in the .htaccess file as a way to speed up and protect your site. Previously here on WPShout I’ve written an “A to Z of WordPress .htaccess Hacks”, which has been a very popular post, and today we’re going to look at ten easy methods to speed up WordPress with the .htaccess file. Not all of these applyspecifically to WordPress; you could easily apply most of these to any other site.
Read the full story
Posted in .htaccess, PHP
Posted on 11 November 2011. Tags: .htaccess
As a web designer or developer, it is important to know how to use the htaccess file to your advantage. It is a very powerful tool, and can even work as a deterrent for bandwidth thieves, exploits, and hackers. Below are some common examples of rules to consider when developing websites. We hope you find them useful.
Read the full story
Posted in .htaccess
Posted on 04 November 2011. Tags: .htaccess, html, PHP
When a web page is accessed, the server checks the extension to know how to handle the page. Generally speaking if it sees a .htm or .html file, it sends it right to the browser because it doesn’t have anything to process on the server. If it sees a .php extension (or .shtml, or .asp, etc), it knows that it needs to execute the appropriate code before passing it along to the browser.
Read the full story
Posted in .htaccess, HTML - XHTML, PHP
Posted on 31 October 2011. Tags: .htaccess
mod_rewrite rules are the power of apache which lets you to do magic withredirection. Using mod_rewrite rule you can create SEO friendly URL’s, forward specific request to any other domain, restrict access to webpages or website based on user agent and much more.
Read the full story
Posted in .htaccess
Posted on 15 March 2011. Tags: .htaccess
If you want to redirect all non-www requests to your site to the www version, all you need to do is add the following code to your .htaccess file:
Read the full story
Posted in .htaccess
Posted on 22 February 2011. Tags: .htaccess, PHP
Posted in .htaccess, PHP
Posted on 19 January 2011. Tags: .htaccess
Redirecting visitors to a maintenance page or other temporary page is an essential tool to have in your tool belt. Using HTAccess, redirecting visitors to a temporary maintenance page is simple and effective. All you need to redirect your visitors is the following code placed in your site’s root HTAccess: Read the full story
Posted in .htaccess
Posted on 31 October 2010. Tags: .htaccess, cache, speed up
Increase your page load times and save bandwidth with easy and really effective methods using apache htaccess directives. This module controls the setting of the Expires HTTP header and the max-age directive of the Cache-Control HTTP header in server responses. The expiration date can set to be relative to either the time the source file was last modified, or to the time of the client access.
These HTTP headers are an instruction to the client about the document’s validity and persistence. If cached, the document may be fetched from the cache rather than from the source until this time has passed. After that, the cache copy is considered expired and invalid, and a new copy must be obtained from the source.
Read the full story
Posted in .htaccess
Posted on 31 October 2010. Tags: .htaccess
Hotlink protection of images
Use this generator to create a .htaccess file for hotlink protection of your images and pictures. Hotlink protection can save you lots of bandwidth by preventing other sites from displaying your images. Read the full story
Posted in .htaccess