Thanks! That helps. I'll try to figure it out.

Chas.

Marius wrote:
> LiftRules.prepend.dispatch is the right way.
> 
> You pattern-match for *.html and return a PermRedirectResponse.
> 
> Br's,
> Marius
> 
> 
> On Jan 23, 3:05 am, "Charles F. Munat" <c...@munat.com> wrote:
>> I'm trying to do something dead simple, so it's impossible, of course.
>>
>> I have some legacy pages that don't exist anymore, and I want to send
>> permanent (301) redirects to the browser. For example:
>>
>> Redirect permanent /thebook.htmlhttp://mysite.com/the_book/
>>
>> The above should work in my vhosts.d conf file, but, of course, it
>> doesn't. Have tried it 50 ways.
>>
>> Searched for information about how to do redirects in Jetty: no joy.
>>
>> David gave me a hint some time ago using LiftRules.prepend.dispatch, but
>> I'm too stupid to understand it.
>>
>> What I *really* want is for any request to any *.html page NOT
>> index.html to go to the home page. Or, I'd be happy to just provide a
>> list of from and to paths and have some code that does the redirects.
>> This seems like a useful feature since my Lift sites will often replace
>> legacy sites and it would be nice to be able to set up a list of old
>> page -> new page and just have the redirects go out (maybe with the
>> option of permanent or temporary).
>>
>> Anyone know how to do this that can explain it in kindergarten terms? My
>> brain is really fried today.
>>
>> Thanks!
>> Chas.
> > 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to