- Posts: 9
COMMUNITY FORUM
Google creating wrong sitelink to tags not working
- Philippe
-
Topic Author
- Offline
- New Member
I have troubles with k2's keywords creating "wrong" links. (Or maybe Joomla's?)
If I use the tag cloud module of k2 the following link is created as an example:
www.zubermedien.ch/index.php/portfolio/itemlist/tag/Print
With the link above everything works fine. However, it seems as if k2/or Joomla would also create a links as follows:
www.zubermedien.ch/index.php/component/tags/tag/print
The second link leads to a corrupted page.
The big problem is, that Google used one of those corrupted links as a sitelink in the search results!
(are those the taglink created by Joomla?)
Thanks for your help.
What I've tried so far
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Let me know.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Philippe
-
Topic Author
- Offline
- New Member
- Posts: 9
I tried it and the result is that Google now STOPPED displaying sitelinks!
Would it help you to get my sitemap?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Now, if you use a sitemap extension, make sure you purge any existing sitemaps and re-create them. Then request that Google re-indexes your site.
The one I see at www.zubermedien.ch/sitemap.xml probably has outdated links.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Philippe
-
Topic Author
- Offline
- New Member
- Posts: 9
img 1https://paste.pics/2e6b88f97b13a91c3d76be1990a7a223
img 2https://paste.pics/a339d626baf6aaca7dfef35b453a184b
(Sitemap Generator by Marco Beierer)
Within Search Console I made sure that Google will reindex my website. Within the next days I will check my sitemap file.
I guess I could manually work on my sitemap to solve the problem? But that would be a stupid solution.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Philippe
-
Topic Author
- Offline
- New Member
- Posts: 9
The Links of «Flyer» and «Hochzeit» lead to corrupted pages.
And I liked it when google used the keywords as sitelinks. That's not happening anymore. It would be great if google used the tags of k2 as sitelinks.
This is how google sees my page. There are a lot of 404's
www.google.ch/search?q=+site:zubermedien.ch+zubermedien&sa=X&ved=2ahUKEwjJtN7arOPeAhWDTMAKHau_CWcQrAN6BAgDEBE&biw=1362&bih=623&dpr=1.5
Thanks for your help
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
b) Additionally, the paths referenced by Google don't match your sitemap.xml file. I can only assume that if (a) does not occur that the URLs are old/cached by Google.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Philippe
-
Topic Author
- Offline
- New Member
- Posts: 9
a) How do I «check for broken links» in my k2 template overrides?
b) The strange thing is that Google changed the search results displayed for «zubermedien» every time I did changes on the website.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Philippe
-
Topic Author
- Offline
- New Member
- Posts: 9
It looks as follows:
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2015 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##
##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that disallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
##
## No directory listings
IndexIgnore *
## Can be commented out if causes errors, see notes above.
Action php /cgi-php7/php
AddHandler php7 .php
## Mod_rewrite in use.
RewriteEngine On
## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.
## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects
##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##
# RewriteBase /
## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
I should put in the links here, I guess.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Philippe
-
Topic Author
- Offline
- New Member
- Posts: 9
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Philippe
-
Topic Author
- Offline
- New Member
- Posts: 9
Please Log in or Create an account to join the conversation.
- Philippe
-
Topic Author
- Offline
- New Member
- Posts: 9
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that disallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
##
## No directory listings
IndexIgnore *
## Can be commented out if causes errors, see notes above.
Action php /cgi-php71/php
AddHandler php71 .php
## Mod_rewrite in use.
I need these lines so that Joomla uses php 7.1:
## Can be commented out if causes errors, see notes above.
Action php /cgi-php71/php
AddHandler php71 .php
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
This is what I see in Google: jmp.sh/LZr2vL8
The only problematic links are the ones pointing to the com_tags component which is part of Joomla and not K2. Perhaps these links are forgotten somewhere with menus pointing to such pages or elsewhere (e.g. in com_content articles).
K2 content seems to work just fine.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.