× Here you can get community support related to Tag Meta.

Confused about using wildcards for url's

  • yaksushi
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 8 months ago #208 by yaksushi
I'm trying to set a noindex follow meta robots tag for the following types of url's

www.domain.com/yaksocial/113-soccerdad/friends

www.domain.com/yaksocial/114-redfish-chuck/friends

www.domain.com/yaksocial/115-geno/friends

www.domain.com/yaksocial/1153-slick-fish/friends

Here is a screen shot of my settings: awesomescreenshot.com/085c4w522

I'm assuming the url I'm using is incorrect, how can I be more specific than just putting
/friends
in for the url?

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #210 by admin
Hi,
the problem here is you may have other URLs like these, that match your rule why they should not. So, if this is not the case, you could use the rule:
^/yaksocial/.*/friends$

But this matches also an URL like:

www.domain.com/yaksocial/234-is-a-demo/friends

The only secure solution is to create a rule for each URL As example:
^/yaksocial/113-soccerdad/friends$

This rule matches only with the first URL.

Hope this helps.
Luigi

Please Log in or Create an account to join the conversation.

  • yaksushi
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 8 months ago #211 by yaksushi
Replied by yaksushi on topic Re: Confused about using wildcards for url's
Wow thanks for your extremely fast response! If I wanted to create a rule to put noindex on all the pages that have friends listed you first rule would work fine correct?

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #213 by admin
Yes.

Please Log in or Create an account to join the conversation.

Time to create page: 0.108 seconds