Skip to main content
Participant
July 9, 2017
Answered

Add the rel="nofollow" tag to all links with a special URL

  • July 9, 2017
  • 1 reply
  • 1861 views

Hey guys,

I am using Adobe Muse to create websites and lately I created some affiliate sites with 20-30 outgoing links to Amazon on every site (the URL is always amzn.to/.... and so on). Since I cannot use Muse to add the nofollow tag to all these links I usually did this manually via Dreamweaver (I just searched every HTML page for "amzn", then all my affiliate links were highlighted and then I went from one to the next always adding the nofollow tag and then uploading and replacing the HTML on my server. However, when I change something on my site, Muse always creates new html documents with everything back to normal (so nofollow tags anymore).

I'm pretty sure there has to be a possibility to tell Dreamweaver to scan a certain folder (so that all my HTML documents of a website are scanned), search all these documents for this "amzn" tag and then to add rel="nofollow" behind these links. I just cannot figure out how I have to do this.

Can you help me?

Regards

Matthias

This topic has been closed for replies.
Correct answer Nancy OShea

A Nofollow meta tag takes the juice out of all links on that page.

If you want to be selective about your links, then you'll need to do a Find & Replace with Regular Expressions.   How good are you with Reg Ex coding?

Nancy

1 reply

Nancy OShea
Community Expert
Community Expert
July 9, 2017

Assuming you get something in return for links on your affiliate pages, the simplest way to do this is add a single meta tag to your affiliate page's <head> tag. 

<meta name=”robots” content=”nofollow” />

Nancy

Nancy O'Shea— Product User & Community Expert
maddobsAuthor
Participant
July 9, 2017

Thanks for the reply. I already added the tag to the head of my pages - however, certain toolbars and crawling services still say that all my links are dofollow then...

Another question: If I add this tag, is it still possible to set some dofollow links then?

And still: I would really prefer someone explaining me how to handle the Dreamweaver Seek and Replace part - since I think this is the best solution for me.

Regards

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
July 9, 2017

A Nofollow meta tag takes the juice out of all links on that page.

If you want to be selective about your links, then you'll need to do a Find & Replace with Regular Expressions.   How good are you with Reg Ex coding?

Nancy

Nancy O'Shea— Product User & Community Expert