[OT] Apache rewrite rule
[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