Re: Mod re-write help

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

 



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/destinationsguide.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


[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