That should be: RewriteEngine on RewriteRule ^/(.*)$ /cgi-bin/wkcgi.exe/test/$1 [L,PT]
You shouldn't see the URL change in the browser. On Mon, 2002-11-25 at 18:39, Ian Sparks wrote: > Thanks Ian, mod_rewrite seems to be the way to go (if I can only get it to work >right) > > Perhaps someone else has this working. The mod_rewite guide suggests that the >commands : > > RewriteEngine on > RewriteRule ^/$ /cgi-bin/wkcgi.exe/test/ [R] > > should have the result of turning http://localhost/ into >http://localhost/cgi-bin/wkcgi.exe/test/ and it does. However, the rule doesn't turn : > > http://localhost/FAQ into http://localhost/cgi-bin/wkcgi.exe/test/FAQ and instead >gives me a 404. > > Perhaps the placement of the Rewrite... commands in the .conf file is important? > > I'm not much of a regexp guy its probably something obvious (setup is Apache2 on >windows). If anyone can whack me with a cluestick I'd appreciate it. > > - I. > > > > -----Original Message----- > From: Ian Bicking [mailto:[EMAIL PROTECTED]] > Sent: Mon 25/11/2002 18:46 > To: Ian Sparks > Cc: Webware discuss > Subject: Re: [Webware-discuss] URL's, stupid question > > > > Perhaps you want to use mod_rewrite: > http://webware.colorstudy.net/twiki/bin/view/Webware/ModRewriteRecipes > > Otherwise you'd have to rewrite your HTML output to fix up the URLs -- > there's no real easy way to do that. > > On Mon, 2002-11-25 at 17:23, Ian Sparks wrote: > > Stupid question : How do I use absolute URL's in my webware programs? (or at >least URL's relative to the context) > > > > For instance, my main page can be found on : > > > > http://localhost/wkcgi.exe/test/main.py > > > > Ideally I want to be able to output <a href="/test/nextlevel/index.py>.... >in my HTML without having to mention the wkcgi.exe part. > > > > > -- > Ian Bicking <[EMAIL PROTECTED]> > -- Ian Bicking <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
