Call (877) SITE-OPT (748-3678)

Code: Redirect Examples

Permanent Redirect Example


Options +FollowSymLinks
RewriteEngine on
RewriteRule ^oldpage.htm$ http://www.example.com/newpage.htm [R=301,L]

Canonical URLs


Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Copyright © 2002-2017 Website Optimization, LLC. All Rights Reserved - Free website speed test - Privacy Policy
Last modified: February 19, 2009.

Follow us on: Twitter, Google+, Facebook, Linked In