Jump to content
wzhao6898

[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?
Thanks,

David

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

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