Re: [Myghty-users] Myghty/Mod_Python and RewriteRule
Brought to you by:
zzzeek
From: Michael B. <mi...@my...> - 2007-04-12 15:33:04
|
great, i was reading the mod_rewrite docs trying to find someting about the rule's rewritten URL being propigated to handlers but got too sleepy. On Apr 12, 2007, at 12:19 AM, Nathan C. Tresch wrote: > The following seemed to fix the problem: > > RewriteRule /trip-([0-9]*)/.*/ /user/trip.php\?tab=airlines > &id=$1 [PT,L] > > Adding the PT (pass through) option. > > Thanks! > > On 4/11/07, Michael Bayer <mi...@my...> wrote: > > On Apr 11, 2007, at 7:16 PM, Nathan C. Tresch wrote: > > > [Wed Apr 11 16:09:53 2007] [error] TopLevelNotFound: > > ComponentNotFound: Cant locate component /trip-18335/Minneapolis/ > > St. Paul/Washington/ at /usr/local/lib/python2.5/site-packages/ > > myghty/request.py line 410 > > > > this line would reveal the rewrite rule is not working, since the non- > rewritten URL is getting sent to the myghty interpreter. you could > also try using MyghtyPathTranslate instead of mod_rewrite. > > > > > > > -- > Nathan C. Tresch > Software Engineer > YapTA! Inc. |