We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
General
General Support
Search
Set external link to rel="nofollow" by default?
159 Posts
eclipseTalk
Reply #1,
17 years, 7 months ago
Hello,
Is there an easy way to make all external links rel="nofollow" by default?
Thanks
4,205 Posts
dev_cw
Reply #2,
17 years, 7 months ago
You could use a plugin and some regex to identify all external links (links that start with http://) and add the rel="nofollow". I am not very good with regex, so I can’t tell you the details.
[font=Verdana]Shane Sponagle
|
[wiki] Snippet Call Anatomy
|
MODx Developer Blog
|
[nettuts] Working With a Content Management Framework: MODx
Something is happening here, but you don't know what it is.
Do you, Mr. Jones? - [bob dylan]
159 Posts
eclipseTalk
Reply #3,
17 years, 7 months ago
Thanks. I don’t even know what regex is all about :-(
4,205 Posts
dev_cw
Reply #4,
17 years, 7 months ago
regex is a regular expression and you use it to identify patterns in a string, like a word. Ironically I have open in another tab a tutorial on regular expressions.
http://www.webcheatsheet.com/php/regular_expressions.php
[font=Verdana]Shane Sponagle
|
[wiki] Snippet Call Anatomy
|
MODx Developer Blog
|
[nettuts] Working With a Content Management Framework: MODx
Something is happening here, but you don't know what it is.
Do you, Mr. Jones? - [bob dylan]