That's one of the mistakes I made, yes. I figured it out and instead of a line like this:
Redirect /specs http://domain.com/specs I now have this: RewriteRule ^specs$ http://domain.com/specs [R=301,L] thanks for your help, -Victor On Nov 9, 6:28 pm, cricket <[email protected]> wrote: > On Tue, Nov 9, 2010 at 2:27 PM, victor piousbox <[email protected]> wrote: > > I understand that the Router should be used for matching URLs to controller > > actions. However suppose I have several dozen relative urls that I want to > > redirect to external resources, like so: > > > /learning (goes to)http://learning.mydomain.com > > /events http://events.mydomain.com > > /history http://some_other_domain.com/history > > > What would be the best way to achieve that? I'm currently doing that in > > .htaccess but there's an issue, my url gets appended to where I'm trying to > > redirect, so for example the last pair looks like this: > > > /history http://some_other_domain.com/history?url=history > > > So I guess the other question I have is how to get rid of that ?url= thing > > in the redirect. > > That's probably because you haven't appended [L] to the rewrite rule > (it means 'last'). Without it, mod_rewrite will keep processing > through the next line(s). Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
