Page 1 of 1

Rel canonical on categories

Posted: Wed Apr 16, 2014 3:45 pm
by LGV
Is it ok to add rel canonical on categories (content_list file)?
<link rel="canonical" href="http://www.sitename.com/category/<!--CATEGORY_NAME-->/" />
I see i have lot of pages related to categories like:
http://www.sitename.com/category/Teen/
http://www.sitename.com/category/2/Teen/ctr/2/
http://www.sitename.com/category/2/Teen/ctr/7/
Should i leave them without or should i add rel="canonical"?

Re: Rel canonical on categories

Posted: Wed Apr 16, 2014 4:00 pm
by admin
Well, you can do it with SmartCJ

Should you add it or not - ask google for example )

Re: Rel canonical on categories

Posted: Fri Apr 18, 2014 9:02 am
by LGV
Thank you admin, i asked Google and i got my answer :)
Regarding description, I added this code in content_list but when i check the page source for one of category, instead of seeing that category description i see the code:
<meta name="description" content="<!--DESCRIPTION-->" />


I use other codes for title, ex: <title><!--CATEGORY_NAME--></title> and this works great, but how can i solve the description problem?

Re: Rel canonical on categories

Posted: Fri Apr 18, 2014 9:27 am
by LGV
..and how can i change this adress: www.sitename.com//?force_template=categories‎ into www.sitename.com/categories
I suppose i can do it from htaccess but what code to use? It is good to change the address or to leave it like that?

Re: Rel canonical on categories

Posted: Fri Apr 18, 2014 1:17 pm
by admin
If you need a description for a category - <!--CATEGORY_DESCRIPTION-->
I suppose i can do it from htaccess but what code to use?
Yes, read about mod_rewrite
It is good to change the address or to leave it like that?
Good for whom ?