put the below content (all in one line) in a file say xxx.sed /^\s*<\/VirtualHost>\s*$/ i\RewriteEngine on\nRewriteRule ^/(.*) http://www.askdavetaylor.com/$1[L,R=301] and invoke this way: sed -rf xxx.sed <input_file> > <output_file>
There are 379 comments on this page. [Display comments]
There are 379 comments on this page. [Display comments]