httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Germer, Carsten" <carsten.ger...@desy.de>
Subject RE: [users@httpd] Mod re-write help
Date Fri, 15 Dec 2006 14:03:00 GMT
Heya Norman,
this is a Zope problem, or even more of the Content Management System
(Plone, ZMS etc.) you use within Zope.
I had the same problem and it turned out that you have to have the logic
that maps between the "pretty URLs" and your object-ids within Zope.
You can not rely on Apache to solve that unless you want to maintain a
_huge_ list of rewrite rules.
Fortunately our CMS "ZMS" has such a logic which we're using now.
I think if you turn to the mailing list for your CMS you should have a
solution very quickly.

Cheers /Carsten

------------------------------------------------------------------------
Carsten Germer         Deutsches Elektronen Synchrotron (Web-Office, IT)
phone:  +49-40-8998-1661                                    Notkestr. 85
web: http://wof.desy.de                                    22607 Hamburg
e-mail: carsten.germer@desy.de                                   Germany
------------------------------------------------------------------------

>-----Original Message-----
>From: jslive@gmail.com [mailto:jslive@gmail.com] On Behalf Of 
>Joshua Slive
>Sent: Friday, December 15, 2006 2:53 PM
>To: users@httpd.apache.org
>Subject: Re: [users@httpd] Mod re-write help
>
>
>On 12/15/06, Norman Khine <norman@khine.net> wrote:
>> Hello,
>>
>> I would like to know how to turn this URI
>>
>> http://destinationsguide.info/catalogue/c51/c57?b_start=15
>>
>> into something like
>>
>> http://destinationsguide.info/catalogue/africa/eastern-africa.html
>>
>> I am already using one rewrite into Zope, so I am not sure 
>how to proceed.
>>
>> <VirtualHost *:80>
>>   ServerName destinationsguide.info
>>   ServerAlias www.destinationsguide.info
>>   RewriteEngine On
>>   #RewriteCond %{HTTP_HOST} ^www\.destinationsguide\.info [nc]
>>   #RewriteRule (.*) http://destinationsguide.info [R=301,C]
>>   RewriteRule ^/(.*)
>> 
>http://destinationsguide.info:15080/VirtualHostBase/http/destin
ationsguide.info:80/destinations/VirtualHostRoot/$1
> [L,P]

The problem is a little under-specified.  What do you mean by "turn
into"?  Do you expect people to use the "pretty" url, and then you
will internally send them to Zope using the less-pretty one?  Or do
you want to externally redirect between them so that people enter the
less-pretty url and then their browser location bar changes?

In addition, it is unclear how you expect the mapping between the two
urls to work in general.  Do you have a list that maps one form to the
other?

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message