[Zope] Rewrite Rule

Norman Khine khine@btinternet.com
Fri, 23 Feb 2001 12:33:49 -0000


This is a multi-part message in MIME format.

------=_NextPart_000_000C_01C09D94.DFAC1010
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hello,
I know this topic has been covered time and time again, and I think I
understand most of it, BUT ;^o I am having problems / something "funny"
seems to be happening!

Following the tutorial in building a Job Board
http://www.zope.org/Members/mukhsein/job_board_howto , all works well but
this is where the "somethin funny" seems to happen.

I have a rewrite rule in my apache conf file

RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^/Zope(.*) /usr/local/Zope/Zope.cgi$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] 

so that when I type http://www.foo.com/Zope/Job_Board/ I get to the
index_html for this tutorial. If I view the job board the entries are shown
I can add jobs, BUT when I do a search, although the entries are displayed
in a table as it is supposed to, the URL link for the "Position", which
takes us back to the entry re-writes itself to
http://www.foo.com/Job_Board/entries/982927522

missing /Zope therefore giving me an error 404 Not Found

So, looking at the Entry Search Result DTML Method

<TD>
          <A href="<dtml-var "Catalog.getpath(data_record_id_)">">
          <dtml-var position_name></A>
          </TD>
             
Catalog.getpath does not seem to work with rewrite rule !?!?! Is this
correct, or am I missing something.

If I access the above using http://www.foo.com:8080/Job_Board/ and do a
search the Catalog.getpath works.

Thanks for your help

Norman      


------=_NextPart_000_000C_01C09D94.DFAC1010
Content-Type: application/ms-tnef;
	name="winmail.dat"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="winmail.dat"

eJ8+IjEMAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANEHAgAXAAwAIQAAAAUAIwEB
A5AGANAIAAAlAAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAADADYAAAAA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