Hi!
Often a unique page of my website is accessed by different urls. I normally want to set the url with the main menu item id as the main url. Because then a navigation menu used on the right sidebar of my template shows me the active open menu item of the page. So I was going to find the duplicates a sef url and changed the main url of the non sef url by finding the main menu item id. So far this works and the sidebar navigation menu shows me the active open menu of the page. The problem is that the website is in development and I sometimes have to purge urls. Afterward all my set main urls are gone.
I've read about setting canonical tags in your docs. But I can't believe that I have to setup hundreds or thousands of canonical tags to fix this problem. So I decided to ask you first.
For better understanding here's an example:
sef url:
abi-check/1-analysis.html
duplicates:
index.php?option=com_k2&Itemid=148&id=323&lang=de&task=category&view=itemlist
index.php?option=com_k2&Itemid=3900&id=323&lang=de&layout=category&task=category&view=itemlist
index.php?option=com_k2&Itemid=3697&id=323&lang=de&layout=category&task=category&view=itemlist
I want to set the url
index.php?option=com_k2&Itemid=3697&id=323&lang=de&layout=category&task=category&view=itemlist
as the main url because of the main menu itemid 3697
When I do so the sidebar navigation menu works as it should and shows the active sub menu items.
Purging the urls makes the setup undone and the sidebar navigation menu no longer works as desired.
I never had this problem in the past. Maybe I have a wrong general setup to be changed?
Many thanks for your help in advance!
Christian
Sorry, I forgot the link to the site:
http://www.xxxx.de/abi-check/1-analysis.html
Often a unique page of my website is accessed by different urls. I normally want to set the url with the main menu item id as the main url. Because then a navigation menu used on the right sidebar of my template shows me the active open menu item of the page. So I was going to find the duplicates a sef url and changed the main url of the non sef url by finding the main menu item id. So far this works and the sidebar navigation menu shows me the active open menu of the page. The problem is that the website is in development and I sometimes have to purge urls. Afterward all my set main urls are gone.
I've read about setting canonical tags in your docs. But I can't believe that I have to setup hundreds or thousands of canonical tags to fix this problem. So I decided to ask you first.
For better understanding here's an example:
sef url:
abi-check/1-analysis.html
duplicates:
index.php?option=com_k2&Itemid=148&id=323&lang=de&task=category&view=itemlist
index.php?option=com_k2&Itemid=3900&id=323&lang=de&layout=category&task=category&view=itemlist
index.php?option=com_k2&Itemid=3697&id=323&lang=de&layout=category&task=category&view=itemlist
I want to set the url
index.php?option=com_k2&Itemid=3697&id=323&lang=de&layout=category&task=category&view=itemlist
as the main url because of the main menu itemid 3697
When I do so the sidebar navigation menu works as it should and shows the active sub menu items.
Purging the urls makes the setup undone and the sidebar navigation menu no longer works as desired.
I never had this problem in the past. Maybe I have a wrong general setup to be changed?
Many thanks for your help in advance!
Christian
Sorry, I forgot the link to the site:
http://www.xxxx.de/abi-check/1-analysis.html