On Mon, May 15, 2006 at 08:38:23AM +0200, Bjørge Solli wrote:
> 
> Have you considered trying mod_rewrite? Your host may have it if it runs 
> apache.
> 
> Try using something like this in your .htaccess-file:
> RewriteEngine on
> RewriteRule ^<some regex>$ cgi-bin/foo.pl
> 
> I use this to avoid ugly urls likt this:
> Rewriterule ^(script)/(var1)/(var2)/(var3)$ $1.php?var1=$2&var2=$3&var3=$4
> 
> This way this...
> site.com/index/foo/bar/123
> becomes
> site.com/index.php?var1=foo&var2=bar&var3=123

I'll look into that for possible future use.  I'm not as familiar with
the .htaccess file as I probably should be, and this gives me an angle
of attack for teaching myself more.

I got in touch with the webhost.  It turns out that the way I was trying
to do it should have been working, but something was misconfigured on
the server.  Darn them.  So now it's all working.  I appreciate the
advice and suggestions from the list, and learned some things even if it
turned out that they weren't relevant to the exact problem at hand
(which was: it should work, but the webhost screwed something up).

Someone actually sent me a message off-list (by accident?) stating that
he was doing exactly the same thing I was trying to do, and it was
working for him, so it should be working for me.  He was right.

I think that pretty much sums it up.

-- 
Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ]
"There comes a time in the history of any project when it becomes necessary
to shoot the engineers and begin production." - MacUser, November 1990

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to