RE: Mod re-write help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx                                   Germany
------------------------------------------------------------------------

>-----Original Message-----
>From: jslive@xxxxxxxxx [mailto:jslive@xxxxxxxxx] On Behalf Of 
>Joshua Slive
>Sent: Friday, December 15, 2006 2:53 PM
>To: users@xxxxxxxxxxxxxxxx
>Subject: Re:  Mod re-write help
>
>
>On 12/15/06, Norman Khine <norman@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux