How To Set Up Search Engine Canonical

We will be publishing some "how to" guides for you to use to help with your creative zen cart design, installation, set up, and maintenance.
If you need instructions and don;t find an article here, please ask us for a How To!

How To Set Up Search Engine Canonical

Postby Zen4Dummies on Mon Mar 30, 2009 10:38 pm

How To Set Up Search Engine Canonical

(Instructions are based on an install that has the template overrides in place)

First part required is this code:

<!– Begin SE Canonical –>
<link rel=”canonical” href= <?php
$original_url = HTTP_SERVER . $_SERVER[’REQUEST_URI’];
$split_url = explode(’?', $original_url);
$no_querystring_url = $split_url[0];
echo $no_querystring_url; ?> />
<!– End SE Canonical –>

Now you need to install the code.

Simply copy and paste the code posted above into the html_header.php file right after the closing title tag (</title>).

The html_header.php is located in the "common" folder of your custom template .

If you do not already have the html_header.php you can simply copy the html_header.php from the template_default / common folder and place it in your custom template / common folder.

These informative How To's are provided compliments of Zen4Dummies at

Site Admin
Posts: 15
Joined: Fri Jun 13, 2008 11:30 pm

Return to How To

Who is online

Users browsing this forum: No registered users and 3 guests