Perennially Sane

Reply to comment

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

Reply

The content of this field is kept private and will not be shown publicly.
  • You may use these tags: [abbr], [acronym], [b], [center], [code], [color], [cpp], [css], [define], [diff], [dtd], [font], [h3], [h4], [h5], [h6], [hr], [html], [i], [img], [java], [javascript], [justify], [left], [list], [mysql], [node], [ol], [perl], [php], [python], [quote], [right], [s], [sh], [size], [sql], [sub], [sup], [table], [u], [ul], [url], [wikipedia], [xml]
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Easily link to terms in various wikis. For help, see <a href="/interwiki/3">interwiki</a>.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Powered by Drupal, an open source content management system

eXTReMe Tracker