Submitted by Arancaytar on Wed, 12/20/2006 - 16:03.
Upon re-reading this article half a year later, I'm afraid I have to admit that the information is woefully inaccurate. This is mostly because I was a beginner at utilizing .htaccess when I wrote this. I know a bit more now, which means that I know how messed-up some of the ways described here are.
For example, the case of a URL containing "name" in its address - complete BS. This can be avoided by adjusting the regular expression to only match the beginning of the URL.
Or a condition that checks if the file exists before handing it over to the handler - this even allows for a joint directory tree between "real" and "virtual" files, where .htaccess first checks for the presence of a real file before letting the virtual content handler do its work. This is how Drupal works, incidentally.
When I have time, I'll rewrite this article to be somewhat more useful. Meanwhile, I hope you don't take me for a complete technical fool after reading this mess - I've learnt since then.
--
Arancaytar
Outdated and incorrect
Upon re-reading this article half a year later, I'm afraid I have to admit that the information is woefully inaccurate. This is mostly because I was a beginner at utilizing .htaccess when I wrote this. I know a bit more now, which means that I know how messed-up some of the ways described here are.
For example, the case of a URL containing "name" in its address - complete BS. This can be avoided by adjusting the regular expression to only match the beginning of the URL.
Or a condition that checks if the file exists before handing it over to the handler - this even allows for a joint directory tree between "real" and "virtual" files, where .htaccess first checks for the presence of a real file before letting the virtual content handler do its work. This is how Drupal works, incidentally.
When I have time, I'll rewrite this article to be somewhat more useful. Meanwhile, I hope you don't take me for a complete technical fool after reading this mess - I've learnt since then.
--
Arancaytar