• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: URLs view – causes to pages duplicates. Urgent!!!
PostPosted: Sat Feb 10, 2018 9:07 am 
Offline
New Member
New Member

Joined: Sun Jul 30, 2017 7:35 am
Posts: 4
Hello everyone,
I need any help with my URLs issues.

This is my typical URL for a product page:
https://www.mysite.de/group1/ group2/product1
However, if I change this URL to the next varieties the product page normally opens keeping changed URL:
https://www.mysite.de/product
https://www.mysite.de/group1/product1
https://www.mysite.de/group2/product1
https://www.mysite.de/type-any-text-here/product1
- here I just put any text inside the URL

Another example of such issue I found at this site:
https://docs.cmsmadesimple.org/tags/cmsms-tags/admin_icon
Try to change this URL e.g.:
https://docs.cmsmadesimple.org/admin_icon
https://docs.cmsmadesimple.org/sdfjsdfjsdvhs,jdfnkjsdfkjlsdfjljlksdflkj/admin_icon
As you see this is the same page.

Therefore, any product page might have several URLs. It caused to the problems in Search Console Tools and Google Analytics. Google finds page duplicates, states about page titles and descriptions duplicates, etc.
I configured pretty URLs like here:
https://www.cmscanbesimple.org/blog/setting-up-pretty-url-in-cmsms

I think this might be a common problem, but I cannot deal with this. Maybe there is any solution via .htaccess. Any piece of advice might be helpful for me.
Thanks in advance.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: URLs view – causes to pages duplicates. Urgent!!!  Topic is solved
PostPosted: Sat Feb 10, 2018 11:29 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7549
Location: The Netherlands
Just set the canonical url meta tag in your head area and module detail templates.
Search engines will only store/use this correct url!

The method is described here:
https://www.cmscanbesimple.org/blog/bas ... d-metatags

_________________
Image

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return! [ Click here ]



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: URLs view – causes to pages duplicates. Urgent!!!
PostPosted: Sun Feb 11, 2018 1:59 pm 
Offline
New Member
New Member

Joined: Sun Jul 30, 2017 7:35 am
Posts: 4
Thank you, Rolf.

I have already had this canonical tag on my pages. I use the Meta Max module that generates it. However, I noticed next thing.
E.g., this must be canonical url of my product page:
https://www.mysite.de/group1/ group2/product1
I change the url to:
https://www.mysite.de/type-any-text-here/product1
Then, I go to look at page’s code and find:
<link rel="canonical" href=" https://www.mysite.de/type-any-text-here/product1" />
So, the canonical meta teg also has changed.

This is Meta Max code for the canonical meta tag:
Code:
{if $canonical != ''}
<link rel="canonical" href="{$canonical_url}" />
{else}
<link rel="canonical" href="{root_url}{if isset($smarty.get.page)}/{$smarty.get.page}{/if}" />
{/if}


I edited page templates as you (Rolf) mentioned above and changed Meta Mag module’s template to:
Code:
{if $doctype_title != '0'}
<link rel="canonical" href="{$canonical_url}" />
{/if}

and everything works fine. Now, I have stable canonical meta tags for product pages.
Thank you very much.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
HostPapa CMS Made Simple hosting