Re: How can I perform a redirct on an invalid page request
It would be way much better to redirect pages with a Moved permanently status (301) to tell search engines that the URL changed If your pages name are the same as they were before, here would be the code to put in your .htaccess (didn't tested thought ) : RedirectMatch 301 (.*)\.asp$ http://myserver.com/pages$1 On 13 jan, 04:41, John Andersen wrote: > I would think that a rewrite rule would take care of that. Don't know > how to write one, but look into it and in case of questions, ask :) > Enjoy, > John > > On Jan 13, 10:26 am, CapeTownGuy wrote: > > > > > Hi, I migrated my website from ASP to cake. How do I get my pages > > which are indexed under Google as xxx.com/xxx.asp to redirect to a > > default page on my new website instead of showing an error message ? > > > Thank you in advance 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: How can I perform a redirct on an invalid page request
I would think that a rewrite rule would take care of that. Don't know how to write one, but look into it and in case of questions, ask :) Enjoy, John On Jan 13, 10:26 am, CapeTownGuy wrote: > Hi, I migrated my website from ASP to cake. How do I get my pages > which are indexed under Google as xxx.com/xxx.asp to redirect to a > default page on my new website instead of showing an error message ? > > Thank you in advance 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
How can I perform a redirct on an invalid page request
Hi, I migrated my website from ASP to cake. How do I get my pages which are indexed under Google as xxx.com/xxx.asp to redirect to a default page on my new website instead of showing an error message ? Thank you in advance 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en