# How to Proxy Content from One URL to Another Without Redirection Using Nginx Ingress

**URL:** <https://discuss.kubernetes.io/t/how-to-proxy-content-from-one-url-to-another-without-redirection-using-nginx-ingress/28903>\
**Category:** General Discussions\
**Tags:** development, network\
**Created:** [July 5, 2024, 3:41am UTC](https://discuss.kubernetes.io/t/how-to-proxy-content-from-one-url-to-another-without-redirection-using-nginx-ingress/28903 "2024-07-05T03:41:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramesh\_Gowda](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/ramesh_gowda/32/14061_2.png) [@Ramesh\_Gowda](https://discuss.kubernetes.io/u/Ramesh_Gowda)\
**Post date:** [July 5, 2024, 3:41am UTC](https://discuss.kubernetes.io/t/how-to-proxy-content-from-one-url-to-another-without-redirection-using-nginx-ingress/28903/1 "2024-07-05T03:41:36Z")

</div>

Could you help me with configuring an Nginx Ingress? I need to set up a redirection for the [www.example.com/all-spots](http://www.example.com/all-spots) URL so that when a user visits it, they see the content of the [www.example.com/spots](http://www.example.com/spots) page. However, the URL in the browser should stay as [www.example.com/all-spots](http://www.example.com/all-spots) and not redirect to spots. How can I make sure that [www.example.com/all-spots](http://www.example.com/all-spots) serves the content from [www.example.com/spots](http://www.example.com/spots) without changing the URL in the address bar? Essentially, I want the content of /spots to be displayed under the /all-spots URL. How can I achieve this proxying without an actual URL redirect?

We tried adding below redirection in our nginx ingress. But not worked.

```auto
location /all-spots {
        rewrite ^/all-spots(.*)$ /spots$1 break;
        proxy_pass http://spots.ecom.svc.cluster.local;
    }

```
