[typo] .htaccess or custom dispatcher

Trejkaz trejkaz at trypticon.org
Tue Jul 26 17:46:11 EDT 2005

On Wed, 27 Jul 2005 02:08, Rahul Dave wrote:
> Hi,
> The .htaccess trick to match old files or rewrite works for regular
> files only, as one might expect. I'm switching over to Typo from Radio
> Userland and then Blogger, so I have a bunch of directories with old
> archives I'd like to access which are below /. The trouble with adding
> a -d rule to the RewriteRule's is that it matches / itself. Is there a
> way to do this at the .htaccess level itself (I dont seem to be
> permitted ScriptAlias's unfortunately) or is the way to go the writing
> of a custom controller to match specific directories and spit out html
> (or suitably redirect to a moved set of archival directories..)
> Rahul

I'm not exactly sure what you're after, but I usually use a "^$" rule right up 
the top of the list to match the root, if I want it to have different 
behaviour from the rules it matches below.


             Email: Trejkaz Xaoza <trejkaz at trypticon.org>
          Web site: http://trypticon.org/
         Jabber ID: trejkaz at jabber.zim.net.au
   GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F  A62C B8C7 BC8B 037E EA73
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/typo-list/attachments/20050727/e435c8f8/attachment.bin

More information about the Typo-list mailing list