Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

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

Community Beginner ,
Jul 09, 2017 Jul 09, 2017

Copy link to clipboard

Copied

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

Views

1.4K
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 09, 2017 Jul 09, 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

Votes

Translate
Community Expert ,
Jul 09, 2017 Jul 09, 2017

Copy link to clipboard

Copied

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 & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 09, 2017 Jul 09, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 09, 2017 Jul 09, 2017

Copy link to clipboard

Copied

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 & Moderator

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 09, 2017 Jul 09, 2017

Copy link to clipboard

Copied

LATEST

Thanks again nancy. Regex exactly seems to be what I need. I read some tutorials to start understanding it - however I feel it might be easier if you would maybe give me a hint for my special purpose (if possible). Regards Matthias

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines