# Creating a Redirect

{% hint style="warning" %}
After you create redirect you have to clear cache of nopCommerce. Go to admin pannel, click on gear icon on top-right of the page. Click on Clear Cache.
{% endhint %}

To create a new redirect rule go to URL Rewrites page of the plugin.

<figure><img src="/files/oX0eIAUfjXjj03idcxgc" alt=""><figcaption><p>URL Rewrites Page</p></figcaption></figure>

{% hint style="danger" %}
If you set up Request Url to `/*`. **Your store will break.** The only solution would be to delete the record from database directl&#x79;**.**
{% endhint %}

{% hint style="warning" %}
Make sure that your redirects do not create infinite loop. (e.g. /page1 -> /page2, and /page2 -> /page1)
{% endhint %}

<table><thead><tr><th width="169.5">Parameter</th><th>Explanation</th></tr></thead><tbody><tr><td>Store</td><td>Select the store for this redirect, or select All.</td></tr><tr><td>Retirect Type</td><td>Select HTTP Status Code of this redirect. See <a href="/pages/8s29eYy3U9ahf51Gs1Ad">HTTP Status Codes</a> page for more details</td></tr><tr><td>Request Url</td><td>URL to redirect <strong>from</strong>.<br>You can input just a path of the url, or full url.<br><br>For example, if you want to redirect from<br><code>https://yourstore.com/iphone/iphoneX</code><br>You can input<br><code>iphone/iphoneX</code><br><code>/iphone/iphoneX</code><br><code>https://yourstore.com/iphone/iphoneX</code><br><br>You can also use <code>*</code> operator to match any pattern.<br>For example, <code>/iphone/*</code> will redirect every url that starts with <code>/iphone/</code>. Note, page <code>/iphone</code> will not be redirected. <br>You can use <code>*</code> in your pattern only once, and it must be at the end of the url.</td></tr><tr><td>Target Url</td><td><strong>Input only if Redirect Type is set to 301, 302, 303, or 307.</strong><br><br>URL to redirect <strong>to</strong>.<br>You can input just a path of the url, or full url.<br><br>For example, if you want to redirect from<br><code>https://yourstore.com/iphone/iphoneX</code><br>You can input<br><code>iphone/iphoneX</code><br><code>/iphone/iphoneX</code><br><code>https://yourstore.com/iphone/iphoneX</code><br><br>You can also use placeholders, see <a href="/pages/jBy93YV1t6jCZh4gslwx">Dynamic Redirects page</a> for more info.</td></tr><tr><td>Preserve Query String</td><td>URLs sometimes have query parameters in them. These parameters are located after <code>?</code> symbol in url.<br><br>For example user goes to url:<br><code>https://yourstore.com/iphone?id=5</code><br><br>If this setting is enabled, you will be redirected to<br><code>https://yourstore.com/newurl?id=5</code><br>If it is not enabled, you will be redirected to<br><code>https://yourstore.com/newurl</code></td></tr><tr><td>Comment</td><td>Comment for admins</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://redirectmanager.docs.foxnetsoft.com/creating-a-redirect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
