• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[OT] Apache rewrite rule
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OT] Apache rewrite rule


  • Subject: [OT] Apache rewrite rule
  • From: Kieran Kelleher <email@hidden>
  • Date: Thu, 16 Apr 2009 09:25:12 -0400

Hello list,

Well when Brian Moore said mod_rewrite was voodoo (http://httpd.apache.org/docs/2.2/rewrite/ ), I was skeptical, but now I believe him! I need some help for what I think should be a pretty simple rewrite rule. I am currently trying to get this to work initially on my development machine, and I keep getting a 404 "Not Found" message from apache (version 2.2.9).

The rule is supposed to take convert URLs like this :
http://localhost/purl/KieranKelleher

and rewrite them like this (on my dev machine):
http://localhost/cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=KieranKelleher

I have added this to the end of my /etc/apache2/httpd.conf just before the last 2 includes at the end of the file (other/*.conf and WO apache.conf)

<IfModule rewrite_module>
# rewrite logging
RewriteLog "/tmp/rewrite.log"

# PURL feature
RewriteEngine On
RewriteRule ^/purl/(.*)$ /cgi-bin/WebObjects/cheetah.woa/-52040/wa/ PurlAction/purl?p=$1
</IfModule>


I can confirm that when I restarted apache it creates the /tmp/ rewrite.log if it does not exist, however nothing gets written there.

I have studied the docs, the wiki docs and many examples. This looks like it should work, but I cannot for the life of me figure out why it does not work :-(

Any clues or hints would be appreciated.

Thanks, Kieran
_______________________________________________
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


  • Follow-Ups:
    • Re: [OT] Apache rewrite rule
      • From: Mike Schrag <email@hidden>
    • Re: [OT] Apache rewrite rule
      • From: Timo Hoepfner <email@hidden>
  • Prev by Date: WO Java Client and WOJavaRebel
  • Next by Date: WOWODC West Attendees...
  • Previous by thread: Re: WO Java Client and WOJavaRebel
  • Next by thread: Re: [OT] Apache rewrite rule
  • Index(es):
    • Date
    • Thread