# Rewrite Rule Assistance

**URL:** <https://www.ruby-forum.com/t/rewrite-rule-assistance/237059>\
**Category:** NGINX\
**Created:** [October 22, 2013, 3:42pm UTC](https://www.ruby-forum.com/t/rewrite-rule-assistance/237059 "2013-10-22T15:42:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alcina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@alcina](https://www.ruby-forum.com/u/alcina)\
**Post date:** [October 22, 2013, 3:42pm UTC](https://www.ruby-forum.com/t/rewrite-rule-assistance/237059/1 "2013-10-22T15:42:10Z")

</div>

I am trying to create a rewrite rule that will append a JPG to  
dynamically  
created URL but have the browser still go to the original URL.

IE:

[http://server/user/info/image](http://server/user/info/image) to [http://server/user/info/image.jpg](http://server/user/info/image.jpg) but  
still  
go to [http://server/user/info/image](http://server/user/info/image)

Thanks for any tips!  
-J

Posted at Nginx Forum:

> **[Rewrite Rule Assistance](https://forum.nginx.org/read.php?2,243993,243993#msg-243993)**
>
> I am trying to create a rewrite rule that will append a JPG to dynamically created URL but have the browser still go to the original URL. IE: http://server/user/info/image to http://server/user/info/image.jpg but still go to...

---

<div class="post-metadata">

**Author:** ![jfountain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@jfountain](https://www.ruby-forum.com/u/jfountain)\
**Post date:** [October 22, 2013, 5:12pm UTC](https://www.ruby-forum.com/t/rewrite-rule-assistance/237059/2 "2013-10-22T17:12:45Z")

</div>

On 22 October 2013 14:41, jfountain [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am trying to create a rewrite rule that will append a JPG to dynamically  
> created URL but have the browser still go to the original URL.

Why don’t you show us where you’ve managed to get to, what you  
expected to happen, and what doesn’t work as you expected.  
Then we can help you learn, without just doing your job for you 😉

## Jonathan

Jonathan M.  
Oxford, London, UK  
[http://www.jpluscplusm.com/contact.html](http://www.jpluscplusm.com/contact.html)

---

<div class="post-metadata">

**Author:** ![jfountain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a88e57/32.png) [@jfountain](https://www.ruby-forum.com/u/jfountain)\
**Post date:** [October 22, 2013, 9:06pm UTC](https://www.ruby-forum.com/t/rewrite-rule-assistance/237059/3 "2013-10-22T21:06:32Z")

</div>

Disregard, I figured it out Thanks.

Posted at Nginx Forum:

> **[Re: Rewrite Rule Assistance](https://forum.nginx.org/read.php?2,243993,244009#msg-244009)**
>
> I am trying to create a rewrite rule that will append a JPG to dynamically created URL but have the browser still go to the original URL. IE: http://server/user/info/image to http://server/user/info/image.jpg but still go to...
