How To Setup A URL Redirect For Your Customer Review Funnel

How To Setup A URL Redirect For Your Customer Review Funnel

July 14, 2017
 - 
Chris Risse
 : 
Estimated Reading Time : 7 minutes
This support guide is intended to help you in the setup of a URL redirect for your customer review funnel. Using a URL redirect creates a seamless experience for the user by behaving and appearing as a functional part of your existing website.
Quick Links

The three code samples below make quick work of setting up a URL redirect for your customer review funnel.


Method 1: JavaScript Page Redirect

The first and simplest method to setup a URL redirect on your website is using this javascript snippet. Start by creating a new page on your website titled Leave A Review. You want the URL of this page to read https://your-domain.com/leave-a-review/ in the browser. Edit the page in your code editor and add the following Javascript snippet to the <head> section of the page.
<script type="text/javascript">
window.location.href("https://your-customer-review-funnel.com/");
</script>
Important: Make sure to replace the window.location.href URL with your own CRF link.
Once this code is entered correctly and saved, you can test the redirect by visiting http://your-domain.com/leave-a-review/ in your browser. Any time a user views the Leave A Review page, it will automatically redirect to the customer review funnel immediately.

Method 2: PHP Page Redirect

If you are using a PHP coded website, you can use a PHP snippet to create the URL redirect.

Start by creating a page for Leave A Review. The URL for this new page should read as http://your-domain.com/leave-a-review/ when viewing the page. Edit the page in your code editor and add the following PHP snippet to the <head> section of the page.

<?
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: https://your-customer-review-funnel.com/” );
?>
Important: Make sure to replace the Location URL with your own CRF link.
Once this code is entered correctly and saved, you can test the redirect by visiting http://your-domain.com/leave-a-review/ in your browser. Any time a user views the Leave A Review page, it will automatically redirect to the customer review funnel immediately.

Method 3: .htaccess Directory Redirect

This method of URL redirection will be the preferred method, but does require the understanding of .htaccess files and editing. Making changes to a .htaccess file can create severe problems for your website, so we recommend working with your webmaster or server administrator to create this redirect.

Open the directory .htaccess file in the editor. Copy the line below as a new line and update the redirect location to your own customer review funnel link.

Redirect 301 /leave-a-review https://your-customer-review-funnel.com/
Important: Make sure to replace the final URL with your own CRF link.
Save the .htaccess file and visit http://your-domain.com/leave-a-review/ in your browser to confirm the redirection is working properly. Any time a user views the Leave A Review page, it will automatically redirect to the customer review funnel immediately.

About The Author

Chris Risse
Chris Risse
Chris is the owner of Mediaryte, a digital commerce company working with local small businesses. He has worked with countless business owners on business mastery, systematizing processes, and quantifying results. Chris also is a competitive fat bike racer and has a fantastic sixth sense for detecting well hidden candy and treats.