Log in

View Full Version : Resolved Mass HTML Update Question



igotregistered
11-29-2011, 05:55 PM
Hi everybody,

I have a custom page I built on my website about 3 years ago. I have thousands of sports players names linked to videos of them on my website.

I want them to resolve in search engines by keyword. But this is something I've never done before.

This is the link structure


<li><a href="http://www.mysite.com/index.php?do=search&mstr=bob+Smith&page=0" title="Bob Smith">Smith, Bob</a></li>

The links are all categorized in alphabetical order by last name/first name.
I would like to add into everybody's title like below:


title="Bob Smith Baseball Player">

This way when somebody enters "Bob Smith Baseball Player" into google The links will be populate.

I'd like to add "Baseball Player" to everybody's links at once editing the HTML.

Is this possible?

Thank you

jscheuer1
11-29-2011, 08:20 PM
If you have an editor that can use regular expressions you could search on something like:


title="([^"]+)">

and replace it with something like:


title="\1 Baseball Player">

Without regular expressions you could try:


">

replace with:


Baseball Player">

With either method, a global replace might not be the best idea. It would take longer, but you might want to go through them one by one anyway. If you know the exact number, and your editor can count the matches, and they equal the number that you have, then a global replace should be OK.

Also, if these links are only in a certain section or sections, many editors will allow you to perform a global replace only within a highlighted area of the text.

Whatever you do, you should back up the file first in case the replaced version becomes unusable.

If this is online and you can give me a link to it or you can attach a zipped version of the file to a post here, I'll see what I can do with it.

igotregistered
11-29-2011, 09:25 PM
Sorry got stuck in a meeting.

Great info. I appreciate the help. Do you think adding the key word reference in there will help in SEO. That is basically the main reason I am doing this.

Thank you

jscheuer1
11-29-2011, 11:07 PM
Yes, I do.

igotregistered
11-30-2011, 01:21 PM
Yes, I do.

Brilliant!

Worked. Thank you very much, sir.