.htaccess file tutorials and htaccess articles (3)

Debug apache log files from php

Secure phpinfo.php with .htaccess, Now instead of getting a 404 error you will see debug information which will help you find out what the problem is.

Continue Reading
Monday, January 8, 2007 / 1 comment

Using TIME_HOUR and TIME_MIN for htaccess RewriteCond

If you want to redirect to a different version of a file based on the time, this code is for you! Please read: Serve Alternate Content based on Time

Continue Reading
Saturday, January 6, 2007 / 2 comments

.htaccess - Wikipedia

.htaccess (Hypertext Access) is the default name of Apache’s directory-level configuration file. It provides the ability to customize configuration directives defined in the main configuration file. The configuration directives need to be in .htaccess context and the user needs appropriate permissions.

Statements such as the following can be used to configure a server to send out [...]

Continue Reading
Wednesday, January 3, 2007 / comments

Running a Reverse Proxy in Apache

In 2003, Nick Kew released a new module that complements Apache’s
mod_proxy and is essential for reverse-proxying. Since then he gets
regular questions and requests for help on proxying with Apache. In
this article he attempts to give a comprehensive overview of the
proxying and mod_proxy_html

This article was originally published at ApacheWeek in January 2004,
and moved [...]

Continue Reading
Wednesday, January 3, 2007 / 5 comments

Caching Tutorial for Webmasters

If you examine the preferences dialog of any modern Web browser (like Internet Explorer, Safari or Mozilla), you’ll probably notice a ‘cache’ setting. This lets you set aside a section of your computer’s hard disk to store representations that you’ve seen, just for you. The browser cache works according to fairly simple rules. It will check to make sure that the representations are fresh, usually once a session (that is, the once in the current invocation of the browser).

Continue Reading
Tuesday, January 2, 2007 / 1 comment

Speed Up Sites with htaccess Caching

2 awesome ways to implement caching on your website using Apache .htaccess or httpd.conf. Both methods are extremely simple to set up and will dramatically speed up your site!

Continue Reading
Tuesday, December 5, 2006 / 7 comments

Setting charset in htaccess

Learning about charset’s and file types maybe pretty boring, but using .htaccess it can be fun!

Continue Reading
Monday, November 27, 2006 / 8 comments

Links to htaccess tutorials and articles

Links to htaccess tutorials and howtos in the htaccess forum

Continue Reading
Wednesday, November 8, 2006 / comments

Mod_Rewrite Basic Examples

mod_rewrite is very useful in many situations. Yet some behaviors were not so obvious when I started to mess with it. After many testings, I understand it much better, now. Having said that, I do not pretend to know it perfectly. I also make mistakes.

Continue Reading
Tuesday, November 7, 2006 / 1 comment

Commonly Used htaccess Code

A lot of commonly used htaccess code snippets for use with the Apache Web Server.

Continue Reading
Tuesday, November 7, 2006 / 1 comment

Set Environment Variables According To URL

Perhaps you want to keep status information between requests and use the URL to encode it. But you don’t want to use a CGI wrapper for all pages just to strip out this information.

Continue Reading
Tuesday, November 7, 2006 / comments

Allowing Access From 1 static IP and Deny the rest

Say you want to deny access to your entire site except when you access it. The following htaccess code does just that.
Instead of a Static IP you could also use a hostname, or part of a hostname..

Continue Reading
Tuesday, November 7, 2006 / comments
Page: 1 2 3

Search

Quantcast