Whatterz


Articles tagged .htaccess

Apache RewriteRule and query strings
At first glance, the way the Apache mod_rewrite module handles query strings can be a little intimidating. mod_rewrite works by sitting on your server in a file called htaccess, and “catching” requests for URL‘s. It then checks these URL request against a series of rules and conditions you have set. If the request meets any of the rules and conditions, it applies then necessary changes to the URL, then reprocesses the request with the changes you have directed. Read more – ‘Apache RewriteRule and query strings’.
Apache .htaccess query string redirects
One of the most common tasks performed by Apache and htaccess is the manipulation of a URL and configuring a redirect for a specific page. Read more – ‘Apache .htaccess query string redirects’.
How to Configure Apache to GZip Your Components
Compressing your Web components will help speed up your Website. The majority of your visitors will benefit as most all Web browsers support GZip compression. You’ll want to compress all text, which includes HTML, CSS, JavaScript, XML, JSON, etc. Read more – ‘How to Configure Apache to GZip Your Components’.
How to Set an Expires Header in Apache
Setting an Expires (or Cache-Control) header in Apache will help speed up your website. I'm running Apache 2.x, and define an expires header for all of the site's static assets (images, stylesheets, and scripts). Read more – ‘How to Set an Expires Header in Apache’.
Enabling Search Engine Safe URLs with Apache and htaccess
An increasingly popular technique among websites and in particular, blogs, is the idea of making URLs search engine friendly, or safe, on the premise that doing so will help search engine optimisation. By removing the obscure query string element of a URL and replacing it with keyword rich alternatives, not only makes it more readable for a human being, but also the venerable robots that allow our page content to be found in the first place. Read more – ‘Enabling Search Engine Safe URLs with Apache and htaccess’.