On Apr 12, 2010, at 3:17 PM, ute Hoffmann wrote:

Hi,
does anyone see why apache will not let me have a rewrite rule like this:

RewriteRule ^/appname(.*)/(.*)/(.*)?apn=(.*)$ /cgi-bin/WebObjects/ appname.woa/$4/wa/ttcms?a1=$1&a2=$2 [last,passthrough]

Try something different:

RewriteRule ^/appname\.(.+)/(.+)/(.+)?apn=(.+) /cgi-bin/WebObjects/ appname.woa/$4/wa/ttcms?a1=$1&a2=$2 [last,passthrough]


You can turn on rewrite rule looking, that might help. I'd work from the command line until you get it working, then worry about the admin tool.

Chuck



Do I need to have the third variable as well, can't I let one variable out of the URL I rewrite to?

When I try to insert the above like this:
RewriteRule ^/appname(.*)/(.*)/(.*)?apn=(.*)$ /cgi-bin/WebObjects/ appname.woa/$4/wa/ttcms?a1=$1&a2=$2&a3=$3 [last,passthrough]

The server admin apache tool becomes empty - all sites gone... Yes, I know, I can do it via terminal, but the other person who has to do work on that webserver, too, needs the Mac Os X apache admin tool....

Or is it something different?

Rgeards,

Ute
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects- [email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/chill%40global-village.net

This email sent to [email protected]

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to