Results 1 to 5 of 5
October 11th, 2011, 12:05 PM #1How to correct/fix search query typos using .htaccess
Get a lot of users who mistype phrases in their search queries. Am trying to use .htaccess to rewrite the mistyped word within the query so the search results have the correctly spelled word and not the typo.
User types in doubl edged sword or knife with doubl edge
Want to be able to replace doubl with double automatically using .htaccess -
Thanks!Salty kisses, Sandy toes, and a Pirate's heart...
October 11th, 2011, 01:44 PM #2
I would set up canonical meta tags to tell robots which one is the correct query instead of putting in .htaccess.
What if the query has missing letters, but also mistakes? "doble eged swords"
If you set up in .htaccess for all possible corrections, your .htaccess will be looooong.
Official Google Webmaster Central Blog: Specify your canonical
October 11th, 2011, 01:56 PM #3Salty kisses, Sandy toes, and a Pirate's heart...
October 12th, 2011, 12:24 PM #4
- Join Date
- October 4th, 2011
- Chicago, Illinois
I can not think of any good way of doing this without seriously jeopardizing site speed. You would have to set up a rewrite condition and rule for every possible combination.
If you must use .htaccess you may want to look up how to implement a RewriteMap.
This would be best handled on the server side. Here you have lots of flexibility and options but will require programming and probable database work.
October 12th, 2011, 12:32 PM #5
Will take a gander and try it out...Salty kisses, Sandy toes, and a Pirate's heart...
By jdimm in forum Rakuten LinkShare - LSReplies: 0Last Post: February 25th, 2009, 01:51 PM
By Linda - 5starAffiliatePrograms in forum Midnight Cafe'Replies: 18Last Post: June 21st, 2004, 06:48 AM
By HumbleFish in forum Rakuten LinkShare - LSReplies: 9Last Post: April 23rd, 2004, 07:10 AM
By in forum Midnight Cafe'Replies: 16Last Post: July 28th, 2002, 05:34 PM