# 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="https://1294137457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdtRqBKYzG9GizarksyGD%2Fuploads%2Femb3DCQxjBncIQFBDzmG%2FScreenshot%202023-02-26%20at%202.49.35%20PM.png?alt=media&#x26;token=8c383016-67c9-4936-a056-e6f33701b593" 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="http-status-codes">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="dynamic-redirects">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>
