Jump to content

[SOLVED] How to configure canonical URL

Recommended Posts

Hi there,

I've configure the Canonical URL module to set thehovercam.com to be the canonical URL. From what I understand, now all the traffic directed to www.thehovercam.com is now redirected to thehovercam.com, but it doesn't seem it's doing that.
Is there anything else I need to set before this will work?


Share this post

Link to post
Share on other sites

I think you've misunderstood the purpose of the canonical URL module. It doesn't automatically redirect pages. The only thing it does is add the following to the header of your website:

<link rel="canonical" href="{$canonical_url}" />

where {$canonical_url} is what you entered on the configuration page. To automatically redirect pages, you'll need to manually modify your .htaccess file. See my post here for how to do that.

Share this post

Link to post
Share on other sites

I find the canonical module?
Where can I put <link rel = "canonical" href = "{$ canonical_url}" />.
Can you give me the way?

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More