[thelist] DB entry shown as a directory??

Jackson Yee jyee at vt.edu
Sat Dec 21 20:14:01 CST 2002


"Adrian Fischer" <adrian at aussiebidder.com> wrote in message
news:MAEALCHBJCNLINKOIAMPKEOGEBAA.adrian at aussiebidder.com...
> I have entries in a Mysql db that are mini pages or brochures for a
business
> directory.
> The links look like this:
> mydomain.com.au/cgi-bin/dockets.pl?action=showdoc&item=578
>
> Is it possible to have that somehow to come up on a browser as
> mydomain.com.au/yourbusiness/
> or at least for that to be typed in and the page appear (not caring what
it
> says in the address pane)

mod_rewrite will do this for you if you're using Apache and the server
administrator has enabled it.  Just type into the .htaccess file

RewriteEngine on
RewriteBase /
RewriteRule ^yourbusiness\/$ /cgi-bin/dockets.pl?action=showdoc&item=578 [L]

and you should be good.

--
Regards,
Jackson Yee
jyee at vt.edu





More information about the thelist mailing list