[clug-talk] Apache and mod_rewrite tips?
michael.gale at bluesuperman.com
Tue Mar 15 18:54:04 PST 2005
That is an excellent idea ... sed could do that no problem, since by
default sed's output is STDOUT.
| sed 's/find/replace/g'
g - globally
Dave Lee wrote:
> Shawn <sgrover at open2space.com> wrote:
>>So, I guess my question is how do you do this then, if mod_rewrite isn't the
> which would allow you to run the content output through an program you
> want, so if you want to change all http://myapp... to http://extapp
> you could run the output through sed or perl
> I'm no sed expert, but here is an example.
> echo http://myapp | sed 's|http://myapp|http://extapp|'
> clug-talk mailing list
> clug-talk at clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying
More information about the clug-talk