# Rewrite rule that alters content results

**URL:** <https://www.ruby-forum.com/t/rewrite-rule-that-alters-content-results/214014>\
**Category:** NGINX\
**Created:** [November 18, 2011, 4:57pm UTC](https://www.ruby-forum.com/t/rewrite-rule-that-alters-content-results/214014 "2011-11-18T16:57:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [November 18, 2011, 4:57pm UTC](https://www.ruby-forum.com/t/rewrite-rule-that-alters-content-results/214014/1 "2011-11-18T16:57:44Z")

</div>

Hello,  
Is there a rewrite statement that I can use to rewrite the html content  
that is being sent back to the client? Some of the content has urls in  
it and they have the wrong port I would like to change it as it’s being  
sent back to the client.

Thanks,  
Charles

Posted at Nginx Forum:

> **[rewrite rule that alters content results](https://forum.nginx.org/read.php?2,218573,218573#msg-218573)**
>
> Hello, Is there a rewrite statement that I can use to rewrite the html content that is being sent back to the client? Some of the content has urls in it and they have the wrong port I would like to change it as it's being sent back to the client....
