> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orderprotection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OP Product Redirect Guide

> Prevent customers from accessing the Order Protection product page directly by setting up an automatic redirect.

To prevent customers from accessing the Order Protection product page directly, you can create a custom Shopify product template that automatically redirects visitors back to the homepage.

<Steps>
  <Step title="Navigate to your theme code">
    Go to **Online Store > Themes** in your Shopify admin. Click **Actions > Edit code** on your live theme.
  </Step>

  <Step title="Create a new product template">
    Navigate to the **Templates** folder and click **Add a new template**. Select **Product** as the template type and name it `product.op-redirect.liquid`.
  </Step>

  <Step title="Add the redirect code">
    Paste the following code into the new template:

    ```html theme={null}
    {% layout none %}
    <!doctype html>
    <html>
      <head>
        <meta http-equiv="refresh" content="0; url=/" />
        <script>location.replace('/');</script>
      </head>
      <body></body>
    </html>
    ```
  </Step>

  <Step title="Save the template">
    Click **Save** to store the new template.
  </Step>

  <Step title="Assign the template to your OP product">
    Go to **Products** in your Shopify admin and find your Order Protection product. Change the **Template** dropdown from `op-default` to `op-redirect`.
  </Step>

  <Step title="Save the product">
    Click **Save** on the product page. Customers who navigate to the Order Protection product page will now be automatically redirected to your homepage.
  </Step>
</Steps>
