Hi,

Thanks for your reply.

I'll try to clarify what I mean.

When the user enters "http://www.place.com/"; into the browser the page 
that is returned is "http://www.place.com:8080/cocoon/mount/MyWebSite/";.

This is very easy to achieve with a redirect but then the user will have 
the URL "http://www.place.com:8080/cocoon/mount/MyWebSite/"; in their 
browser - this is NOT what I want. Also they will be using the tomcat 
http rather than apache - this is also not what I want.

So... :)

Step 1 - get mopd_webapp running... No Problems. Now I can go to 
"http://www.place.com/cocoon"; and I get the same result as I would have 
with "http://www.place.com:8080/cocoon";.

So far so good. But I don't just want to get to cocoon, I want to get to 
a sub-site mounted in the 'mount' directory.

Now I want to be able to enter the URL "http://www.place.com/index.html"; 
and get back the same result as 
"http://www.place.com:8080/cocoon/mount/MyWebSite/index.html";.

ie. within apache I need to rewrite ALL url's for a virtual host so that 
'/cocoon/mount/MyWebSite' is inserted at the beginning of all requests - 
BUT I don't want to user to see this so I can't use a redirect.

This is where I get stuck. :)

Thanks again,

Phil

On Wednesday, December 12, 2001, at 03:07 PM, David Rosenstrauch wrote:

> What they're referring to in the FAQ is that, by default, all URL's 
> contain "cocoon" in them, since usually cocoon resides in a "cocoon" 
> sub-dir under, say, Tomcat.  They provide directions how to take 
> "cocoon" out of the URL.
>
> I'm not sure what you're asking though.  What part of the URL are you 
> trying to hide?  You probably already know that the URL request 
> parameters (e.g., index.html?parm1=a&parm2=b) can be hidden by using 
> method=POST, so I assume you're not asking about this.
>
> If you can provide more details about what you're trying to hide, 
> perhaps I can help.
>
>
> DR
>
>
> At 02:59 PM 12/12/01 +1100, you wrote:
>> I wish to "hide" part of the URL from the user.
>>
>> I noticed on the cocoon web site there is a FAQ with the title:  How 
>> do i hide "cocoon" in the URL's once i integrate using mod_jk as shown 
>> above?
>>
>> FYI: The example in the cocoon FAQ doesn't so much "hide" anything in 
>> the URL, rather presents the full URL immediately to the user - the 
>> complete opposite of the desired result.
>>
>> I'll have a play with rewrite and aliases to see if there is a way to 
>> "hide" part of the URL (never used them before :) ) If someone has an 
>> answer to this, perhaps updating the FAQ would be good.
>>
>> Thanks in advance,
>>
>> Phil
>>
>>
>> ---------------------------------------------------------------------
>> Please check that your question has not already been answered in the
>> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>>
>> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to