I am required to add <meta name="robots" content="index, follow"> to all of the product pages on our site. We have over a hundred products and it would be very hard adding that code to the html of all of the product pages. So is there an easier/better way of doing this? Andy
Use this tutorial: http://blog.convurgency.com/570/how-to-add-google-analytics-to-your-website/ It's for adding the Google Analytic code, but the same steps/principles apply
As in Dreamweaver, I would select some code that is on all pages like: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> Then do a FIND: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> Then do a REPLACE WITH: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="robots" content="index, follow"> You could use </head> and put your code on the line before it in the REPLACE WITH option. Make sense?
hi andy this is the way open any page in your web site folder with dreamweaver select line before this code <meta name="robots" content="index, follow"> click ctrl+f paste with your mate tag in replace box. then choose find in folder and select your folder which is all your pages in that folder. than click replace all it will finish in second successfully
Andy, you don't need to add this code to any of your pages. Search engines will index any page they find and follow any links they come across unless they are specifically told otherwise, via META tags or the robots.txt protocol. And as the owner of a search engine Web site (which won't be of interest to any of you unless you like table-top miniatures warfare games), I can tell you this first-hand.
there are many software which can find and replace like PSPAD editor and many others just google them.
I agree, a SE should index all pages that are linked together over time. Adding <meta name="robots" proberbly won't make a blind bit of difference.
Copy / paste the code in every page to be sure your work isnt just waste the time. You want all your pages indexed, right? So...
Zippo, did you even read my post about how pointless that tag is? http://forums.digitalpoint.com/showpost.php?p=3681608&postcount=6
My reply is very simple and like Bric002. This will work and very simply. So read carefully step by step: 1) Look for one code/word/words/quote within the title that is unique on the page. Say for instance you select the code <META NAME="website-id" CONTENT="xyz10"> 2) Now add a word that is not there anywhere in your pages to the end of this code (can be anything like "andyleemquest" your new phrase will be <META NAME="website-id" CONTENT="xyz10">andyleemquest 3) Run your search and replace software 4) Put your main directory (with all your pages) in the "location" form 5) Input the selected code (as given in e.g. above) in the "Search" form 6) Input the new phrase (like from the step 2) in the "Replace" form & run the software (i.e. replace all). Do not fret. I'm not trying to screwup your website. Just read on and you'll understand what I'm doing... 7) Start your software again 8) Input only the word that you added in step 2 (andyleemquest in the illustration here) in the "Search" form. 9) Input the code that you wish to add in all your pages (<meta name="robots" content="index, follow">) in the "Replace" form and run the software again (i.e. replace all) You're done - SIMPLE. Isn't it!
If it is a large website, you might be better of using includes. That way you just have to type it once in you included header file.
create your pages dinamically with php -> If you need some script , pm me , I will make a code for you .