[thelist] Rewrite rule "translator"

Joe Crawford jcrawford at avencom.com
Sat Apr 14 13:05:09 CDT 2001

on 4/14/01 11:02 AM, Philippe Jadin at philippe.jadin at 123piano.com wrote:

> Hello,
> Is there a mod_rewrite guru here? I'd like to understand how this works
> because I need to "rewrite" my site. I have zope running on port 8080, and
> apache on standard port 80. And it sooo complex for a newbie ;-)
> I'd like to redirect
> www.123piano.com -> www.123piano.com:8080/piano

Why not just use a redirect then:

in the root of www.123piano.com do this:

Redirect / http://www.123piano.com:8080/piano/


> So my zope content would be served insted of the static apache.
> How could this be done with a rewrite rule? Is it possible? (it must be, it
> seems simple, but I don't understand mod_rewrite very well)
> Is it possible to have such a rule in an .htaccess file? I don't have access
> to other apache configs...
> ------
> Or I could use the pcgi interface of zope (but this seems to be quite
> complex)
> This would mean something like :
> www.123piano.com -> /home/jadin243/web/zope/Zope.cgi/
> And here comes my rewrite rule :
> RewriteEngine on
> RewriteRule   ^/$  /home/jadin243/web/zope/Zope.cgi/  [R]
> Could you help me to understand this rule? I adapted it from another one,
> and I'm not too sure how to make it works. It should also pass
> authentifiacation headers to the cgi. (What a mess ;-)

I'm not going to attempt that lest I embarrass myself. :-)

For mod_rewrite this is good:
And there's stuff on the apache site as well:

    Joe <http://artlung.com/>
Joe Crawford ||||||||||||||       mailto:jcrawford at avencom.com
||||||||||||||||||||||||             http://www.avencom.com
|||||||||||||||||||||||||||      Avencom: Set Your Sites Higher

More information about the thelist mailing list