• Page 1 of 1
  • 1
uCoz Community » For Webmasters » Site Promotion » Duplicate title and meta tags
Duplicate title and meta tags
Jemi
Posts: 3
Reputation: 0

Message # 1 | 8:37 AM
Hello! Im new to ucoz. I want to remove from google webmaster tools and search results the duplicate titles of my webpages. I want some of my pages to have a unique title and noindex meta tag.

I tried the advice from this thread (http://forum.ucoz.com/forum/38-16098-1) but it wont work according to my liking.

Im just using publisher module. So I redirect my homepage to publisher so my $URI_ID$ in the home is puMain. When Im on page 2 example.com/?page2 and so on my $URI_ID$ is also puMain.

In this website http://www.affordablecebu.com/ each page has a unique titles.

Homepage: Classified Ads - AffordableCebu Free Classified Ads - Page 1
Page 2 title (http://www.affordablecebu.com/?page2): Classified Ads - AffordableCebu Free Classified Ads - Page 2

What are conditional tags used for that particular example or what are the exact code used and where I can add those codes? Is it on the Design customization-->publisher main page?

Also I don't want example.com/?page2 and so on to be appeared on search results and so I'd like to add a meta tag like this: <meta name="robots" content="noindex,follow,noodp,noydir"/>. I know it's already disallowed on the robots.txt but robots.txt only disallowed and not removing them from search results.

Any help is highly appreciated!
Sunny
Posts: 9296
Reputation: 456

Message # 2 | 2:22 PM
Jemi, if you want to add 'Page N' to the title, you can use the following code:

Code
<?ifnot($CURRENT_PAGE$='1')?> - Page <?substr($CURRENT_PAGE$, 28, strpos(substr($CURRENT_PAGE$, 28), '>')-6)?><?endif?>


It can be added to meta description as well.

I'm not active on the forum anymore. Please contact other forum staff.
Jemi
Posts: 3
Reputation: 0

Message # 3 | 9:07 AM
Thanks a lot!

Added (2015-07-02, 9:07 AM)
---------------------------------------------
Hello! what about adding a noindex meta tag? Would you please provide conditional tag and code? Thank you!

Sunny
Posts: 9296
Reputation: 456

Message # 4 | 12:17 PM
Jemi, do you want to add it to some specific pages/modules?
I'm not active on the forum anymore. Please contact other forum staff.
Jemi
Posts: 3
Reputation: 0

Message # 5 | 2:39 PM
I want to add the noindex meta tag on the following;

example.com/?page2
example.com/?page3
example.com/?page4
and so on...

Thank you.
Sunny
Posts: 9296
Reputation: 456

Message # 6 | 11:52 AM
Jemi, the code will be as follows:

Code
<?ifnot($CURRENT_PAGE$='1')?><meta name="robots" content="noindex, follow"/><?endif?>

I'm not active on the forum anymore. Please contact other forum staff.
uCoz Community » For Webmasters » Site Promotion » Duplicate title and meta tags
  • Page 1 of 1
  • 1
Search: