|
Loading...
|
mod_python@modpython.org
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [mod_python] Mod_Python and RewriteRule Nathan C. Tresch Wed Apr 11 18:13:00 2007
So, here is what I get: %tail -f rewrite_log 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [dev.yapta.com/sid#80d05f0][rid#8d3c050/initial <http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (2) init rewrite engine with requested uri /trip-18335/Minneapolis/St. Paul/Washington/ 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [dev.yapta.com/sid#80d05f0][rid#8d3c050/initial<http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (3) applying pattern '/trip-([0-9]*)/.*/' to uri '/trip-18335/Minneapolis/St. Paul/Washington/' 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [ dev.yapta.com/sid#80d05f0][rid#8d3c050/initial<http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (2) rewrite '/trip-18335/Minneapolis/St. Paul/Washington/' -> '/user/trip.myt?tab=airline&id=18335' 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [ dev.yapta.com/sid#80d05f0][rid#8d3c050/initial<http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (3) split uri=/user/trip.myt?tab=airline&id=18335 -> uri=/user/trip.myt, args=tab=airline&id=18335 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [ dev.yapta.com/sid#80d05f0][rid#8d3c050/initial<http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (2) local path result: /user/trip.myt 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [ dev.yapta.com/sid#80d05f0][rid#8d3c050/initial<http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (2) prefixed with document_root to /usr/local/data/wwwdev/ntresch/public/user/trip.myt 67.42.99.238 - - [11/Apr/2007:15:44:23 --0700] [ dev.yapta.com/sid#80d05f0][rid#8d3c050/initial<http://dev.yapta.com/sid#80d05f0%5D%5Brid%238d3c050/initial>] (1) go-ahead with /usr/local/data/wwwdev/ntresch/public/user/trip.myt [OK] Yet my browser still gives me a 404. I suspect it's because python/myghty is looking for something in the origional path, it's modules maybe? And it can't find anything there. On 4/11/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
On 12/04/07, Nathan C. Tresch <[EMAIL PROTECTED]> wrote: > We're using Myghty and Mod_Python. The following RewriteRule produces a > 404: > > RewriteRule /trip-([0-9]*)/.*/ > /user/trip.myt\?tab=airlines&id=$1 [L] > > Previously, before we converted to PHP, the rule looked like this: > > RewriteRule /trip-([0-9]*)/.*/ > /user/trip.php\?tab=airlines&id=$1 [L] > > This worked. > > Can anyone tell me what gives? Have you tried debugging what mod_rewrite is doing by increasing its logging output using the RewriteLogLevel directive etc? From that you can see what it finally rewrites it to. You can then try putting that URL into the browser directly and try and work out why any other configuration may not be correct. Graham
-- Nathan C. Tresch Software Engineer YapTA! Inc.
_______________________________________________ Mod_python mailing list [EMAIL PROTECTED] http://mailman.modpython.org/mailman/listinfo/mod_python
- [mod_python] Mod_Python and RewriteRule Nathan C. Tresch 2007/04/11
- Re: [mod_python] Mod_Python and RewriteRule Graham Dumpleton 2007/04/11
- Re: [mod_python] Mod_Python and RewriteRule Nathan C. Tresch 2007/04/11 <=
- Re: [mod_python] Mod_Python and RewriteRule Graham Dumpleton 2007/04/11
- Re: [mod_python] Mod_Python and RewriteRule Nathan C. Tresch 2007/04/11
- Re: [mod_python] Mod_Python and RewriteRule Graham Dumpleton 2007/04/11
- Re: [mod_python] Mod_Python and RewriteRule Nathan C. Tresch 2007/04/11
- Re: [mod_python] Mod_Python and RewriteRule Graham Dumpleton 2007/04/11
- Re: [mod_python] Mod_Python and RewriteRule Nathan C. Tresch 2007/04/11
- Re: [mod_python] Mod_Python and RewriteRule Graham Dumpleton 2007/04/11
- Re: [mod_python] Mod_Python and RewriteRule Nathan C. Tresch 2007/04/11