You are here:  » No Product pages - indexing search result feasable?


No Product pages - indexing search result feasable?

Submitted by Fuzzy on Mon, 2015-02-23 04:11 in

For a current project I an not using Product and category pages at all though this also leads to the issue of having not many search engine results.

Indexing all search queries could also be an issue due to the amount of potential links although sites like staticice appear to be successful doing exactly this - not sure how they get around it.

My other thought is to somehow pass the product results that I would not be using as actual search queries and map these to the sitemap. I am trying to keep the results as simple and as accurate as possible and this could be a great way to provide better results for users and search engines alike.

To summarise using your demo website as an example:

Product pages will not be used
i.e http://www.webpricecheck.co.uk/product/Samsung-UE55H6400.html

The Product name that gets generated however will be used for the sitemap as a search query i.e
www.webpricecheck.co.uk/search.php?q=Samsung-UE55H6400

User generated searches will not be indexed.

Is this feasible?

Submitted by support on Mon, 2015-02-23 09:27

Hello Fuzzy,

Sure - it would be straight forward to modify sitemap.php to generate search.php URLs for each product instead of the product page.

In that file, look for the following code at line 30:

  $sitemapHREF = tapestry_productHREF($row);

...and REPLACE with:

  $sitemapHREF = $config_baseHREF."search.php?q=".tapestry_hyphenate($row["name"]);

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by Fuzzy on Mon, 2015-02-23 11:23

Wow that seemed almost too easy.

Thanks again David!

Submitted by Fuzzy on Tue, 2015-02-24 11:39

Spoke too soon, here is the sitemap in question: {link saved}

It works with the original file though it doesn't generate the product name after search.php?q=

Submitted by support on Tue, 2015-02-24 12:10

Sorry Fuzzy, use:

  $sitemapHREF = $config_baseHREF."search.php?q=".tapestry_hyphenate($row["normalised_name"]);

(this will also ensure that the clean version of the product names are used, as would normally be used in the product page URLs...)

Cheers,
David.
--
PriceTapestry.com

Submitted by Fuzzy on Wed, 2015-02-25 07:53

Thanks for that, works perfect.