How To Setup A URL Redirect For Your Customer Review System

This support guide is intended to help you in the setup of a URL redirect for your Customer Review System. Using a URL redirect creates a seamless experience for the user by behaving and appearing as a functional part of your existing website.

The three code samples below make quick work of setting up a URL redirect for your Customer Review System.

Medthod 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 http://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("http://crs.mediaryte.net/review/YOUR-CRS-LINK/");
</script>
Make sure to replace the window.location.href URL with your own CRS 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 CRS immediately.


Medthod 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: http://crs.mediaryte.net/review/YOUR-CRS-LINK/” );
?>
Make sure to replace the Location: URL with your own CRS 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 CRS immediately.


Medthod 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 CRS link.

Redirect 301 /leave-a-review http://crs.mediaryte.net/review/YOUR-CRS-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 CRS immediately.


Need Assistance?

If you are having difficulty adding the URL redirect to your website, we are happy to assist you with the setup. Click on the button below to create a new service request.

Create Service Request