OT : help needed for a Apache 301 redirect using regex

Richard Gaskin ambassador at fourthworld.com
Sat Sep 14 12:37:37 EDT 2013


jbv wrote:

> I have several urls of this kind :
> http://www.mydomain.com/foo.php?someName_someCode
>
> that I need to permanently redirect to something like :
> http://www.mydomain.com/?foo_someName_someCode
>
> There are actually thousands of urls in which someName_someCode
> is different, and I have troubles writing the regex for a 301 RewriteRule.

What's handling those URLs on the backend?  LC Server, PHP, or something 
else?

If LC I would imagine you could alter the string following the domain to 
simply replace ".php?" with "_", no?

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys




More information about the use-livecode mailing list