Re: Mod_Rewrite
Re: Mod_Rewrite
- Subject: Re: Mod_Rewrite
- From: Martin Samm <email@hidden>
- Date: Wed, 23 Mar 2011 09:07:24 +0000
Ken,
we use a number of short url forms and rewrite these to other URLs (admitedly DAs only).
For example
RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$
RewriteCond ${vhostapp:%1} ^(.+)$RewriteRule ^/assignment/(.+)$ /aetopia/WebObjects/%1.woa/wa/e?e=$1
We're using some virtual hosts which is the reason for the %1 references; the key bit is that we're regex-ing a certain short form and rewriting to the DA long form.
Not sure if this helps you at all.
Martin
On 23 March 2011 06:54, Ken - Watermark Studios
<email@hidden> wrote:
I know this is a topic that has been exhausted extensively, but I need some help finding resources that address my difficulty with mod_rewrite and wo.
I notice that a number of tutorials explain how to mod_rewrite direct actions for shorter URLs, but is there a way to just generically remove the "cgi-bin/WebObjects/App.woa" portion of the URL? I don't mind the "wo/" or "wa/" part, but it would be nice to just have "
www.mysite.com/wo/dynamic_stuff" or "
www.mysite.com/wa/direct_action" especially for tracking purposes.
I've read a number of articles about this, but either they only address the direct actions and require some application class imports or they just don't seem to work.
Btw, I'm running Centos 5, WebObjects 5.4, and Apache2.
Thanks,
Ken Anderson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Martin Samm
Aetopia Ltd
+44 (0) 28 9099 8767
____________________________________________________________________________
Aetopia Ltd is a limited company registered in Belfast, Northern Ireland,
with registration number NI053321, having its principal place of business
(and postal address) at ECIT Institute, Queens Road, BELFAST BT3 9DT
and registered office at 1, Lanyon Quay, BELFAST BT1 3LG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Mod_Rewrite (From: Ken - Watermark Studios <email@hidden>) |