Posted - 07/06/2018 : 20:00:03
Tired of search results page being of little to no SEO benefit? Here is a little trick that should help. First, in the <head> put above the <title> and <description> tags. <% pnstring=Trim(Request.QueryString("pg")) if pnstring<>"" then PageNumber=" Page "&pnstring&" " else PageNumber="" end if %>
This will add the search results page number to the tags. Second, do this with the tags. <title>Search for WHAT EVER CONTENT IS APPROPRIATE TO YOUR WEBSITE<%=PageNumber%></title> <meta name="description" content="Search results for '<%=htmlspecials(request("stext"))%>' on yourwebsite url<%=PageNumber%>">
Using a site I am currently building, this is the result. <title>Search for Anti-Fatigue, Anti-Static, Anti-Slip Industrial and Commercial Mats and Runners Page 1 </title> <meta name="description" content="Search results for 'anti fatigue' on IndustrialMats.net Page 1 ">
For PHP, use <?php print htmlspecials($stext)?> in the description tag. Sorry, I do not have a page number script for PHP. Hope you find this beneficial. MarshallCENLYT Productions - ms designs Affordable Web Design Custom Ecommerce Designs Responsive Websites Cenlyt.com
Edited by - Marshall on 07/06/2018 20:15:19
|