[thelist] DB entry shown as a directory??
j.d. welch
so.there at showtunepink.com
Sat Dec 21 22:20:00 CST 2002
On Saturday, December 21, 2002, at 10:23 PM, Adrian Fischer wrote:
> that did the trick. If I could ask a follow on question. How many
> rewrites
> can I put in the htaccess file before it becomes unwieldy?
> 10..20..1000?
well, i'm not sure about a limit to the size, but you can do clever
things to make the rewrite rules more flexible by taking
'subdirectories' as query string variables, thus:
RewriteRule ^/yourbusiness/([A-Z]+)/([A-Z]+)$
/cgi-bin/dockets.pl?action=$1&item=$2 [L]
so, entering /yourbusiness/showdoc/578 in the browser would resolve to
/cgi-bin/docklets.pl?action=showdoc&item=578
and so on. much more at:
http://httpd.apache.org/docs/mod/mod_rewrite.html
> What about writing to a htaccess on the fly from within a perl program
> so
> that it gets updated automatically?
the automated idea is great though; i don't see why it wouldn't work;
.htaccess is just plain old text... i wouldn't be surprised if it has
been done before.
-jd
------------------------------------------------------------------
J.D. Welch | so.there at showtunepink.com
graphic designer | http://www.showtunepink.com
web developer | https://kitschparade.ath.cx
------------------------------------------------------------------
More information about the thelist
mailing list