Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 Advanced Tips and Tricks - NO QUESTIONS PLEASE
 Dynamic meta desc on search results page
Author « Topic »  

Marshall
Ecommerce Template Guru

USA
1912 Posts

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.



Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Edited by - Marshall on 07/06/2018 20:15:19

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 07/06/2018 :  20:23:11  
Ecommerce Templates PHP users can download Dynamic page <title>, <meta description> and meta og:tag code, including the Page Number tack-on trick, from my website page here >>

However, I do personally consider that "search.php" should be coded <meta name="robots" content="noindex, nofollow">

And "products.php" pages be <meta name="robots" content="noindex, follow">

Because they do in fact contain Duplicated Content of the more beefy detailed description on your "proddetail.php" pages, which is what you actually do want indexed as a top priority to appear in Search Engine Results pages.

Gary
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000