Forum
Welcome, Guest
Please Login to access forum.
Re:Google index (1 viewing) 
Go to bottom
TOPIC: Re:Google index
#2020
Dimagias SRL
Fresh Boarder
Posts: 7
User Offline
Google index Karma: 0  
Google index some page with parameter http://www.domain.com/?responsivizer_template=responsivizer and when click from search result with desktop redirect to mobile template not to desktop template

Solution?
 
Logged Logged  
  The administrator has disabled public write access.
#2021
John Dagelmore
Admin
Posts: 3885
User Online Now
Re:Google index Karma: 84  
Hello,

these are URLs normally used for the template switcher to mobile.
To avoid that Google will index them the easiest way is add a disallow rule in the robots.txt:

Disallow: ?responsivizer_template
 
Logged Logged  
  The administrator has disabled public write access.
#2215
Dimagias SRL
Fresh Boarder
Posts: 7
User Offline
Re:Google index Karma: 0  
John Dagelmore wrote:
QUOTE:
Hello,

these are URLs normally used for the template switcher to mobile.
To avoid that Google will index them the easiest way is add a disallow rule in the robots.txt:

Disallow: ?responsivizer_template

Not work, google continue index this version of page
 
Logged Logged  
  The administrator has disabled public write access.
#2216
John Dagelmore
Admin
Posts: 3885
User Online Now
Re:Google index Karma: 84  
If you have a webmasters tools account you can test if the link is correctly blocked in the robots.txt with the tester.

Another way to block this is adding the 'nofollow' to the link in the template index.php.

Open the index.php and use the following code for the link containing the rel="nofollow":

Code:

<a rel="nofollow" href="<?php echo $queryStringToDesktop;?>"><?php echo JText::_('TPL_RESPONSIVIZER_DESKTOP_VIEW');?></a>
 
Logged Logged  
  The administrator has disabled public write access.
#2217
Dimagias SRL
Fresh Boarder
Posts: 7
User Offline
Re:Google index Karma: 0  
nofollow not help

i test and corect code is

Disallow: /*?responsivizer_template=responsivizer

Disallow: /*?responsivizer_template=desktop
 
Logged Logged  
  The administrator has disabled public write access.
Go to top