Search Engine Safe query strings

hi guys, ok i got a good one for you...
so ive heard that google (and users) like it if you chang:
www.abc.com/somepage.cfm?productid=1234
into
www.abc.com/products/red-ones/1234
or similar.
so if i'm going to do this which is the best format? (i'm
building the site from scratch so have a blank canvass)
option 1:
www.abc.com/products/car-parts/fuel-systems/1234
this option - looks nice but actually points to a *virtual*
page (www.abc.com/products/car-parts/fuel-systems/1234/index.cfm)
that is several sub directories deep; im sure i read somewhere that
the closer a page is the root the better google will rate it... so
maybe this is better..
www.abc.com/car-parts-fuel-systems/1234 or
www.abc.com/car-parts-fuel-systems-1234
-less visually attractive to my way of thinking but perhaps
google would rate this page higher than the option1 one?
or how about this (which had been suggested to me but i dont
like)
www.abc.com/products.cfm/car-parts/fuel-systems/1234
i dont like the above one as it isnt www3 correct is it?
although i can see how it is possibly nicer than
www.abc.com/products.cfm?carpartid=1234
so what do you guys think?
thanks very much indeed
Nick

hi Nick,
whilst you handle it all in CF via stub files a much cleaner
approach is to use web server rewrites. On IIS you need to purchase
something called ISAPI_Rewrite and on Apache it's free called
mod_rewrite.
What this does is allow the web server to pattern match your
incoming url requests via regular expressions and rewrite them on
the fly.
For example,
I'm currently working on a fusebox site, that has big massive
query strings like
http://mysite/index.cfm?fuseaction=links.display
with mod_rewrite, I'm actually accessing the pages as;
http://mysites/links/display
- much much cleaner
and you can get as complex as you like, for example to get
information about a product into my URL i have one for example;
http://mysites/products/product/1234/a-super-cool-widget
and i have a rewrite rule that is then plucking out the
'1234' from the URL and actually serving the page;
http://mysites/index.cfm?fuseaction=products.product&productid=1234
have a look into that and see how you get on,
edit: I should say that you have to write the rewrite rules
yourself - they're not that magic and with a little bit of time you
can usually get them working pretty quick.

Similar Messages

  • Inputting Multiple Search Fields into Query String??

    hey guys and gals
    quick question...i am building a little widget that allows a
    user to type in keyword(s) into one input field and then a zip code
    into another
    when the user clicks submit, it plugs them into the search
    url
    i have it working for one input field, but i am not sure how
    to append the script for the second field...what would i need to
    change to the below script to add a second field into that query
    string?
    btn.onRelease = function(){
    getURL("
    http://www.google.com/search?q="+myInputField,"_blank");
    any help is much appreciated...thanks for your time!

    Try looking at the methods of the String class. If you locate
    the characters that need replacement, split the string into two
    separate strings each without the special character, and substitute
    the hex equivalent, that should do the trick.
    original:String=new String(input);
    for(var i=0; i<original.length; i++){
    if(original.charAt(i)==" "||/*insert as many cases as you
    need here*/){
    //insert your replacing code here
    special
    characters reference

  • With the current warning regarding internet explorer, is your "google" search engine safe? If not, what would be the safest search engine?

    Same as above. I'm concerned about using internet explorer at this time. I would appreciate your response.

    What is the warning you are reading about ?
    This is probably not really a Firefox support question if it relates to Search engines.
    The Google Search used is an HTTPS version and so that helps with security. Firefox itself has some security features built in. You may find these articles of interest.
    * http://www.mozilla.org/en-US/firefox/desktop/trust/#secure
    ** https://blog.mozilla.org/blog/2013/01/28/privacy-day-2013/
    * [[How does built-in Phishing and Malware Protection work?]]

  • Search Engine Safe (ses) URLs

    I am running a test server with MX7 and IIS5. I have SES urls
    working on a production server with MX6.1 but this test server will
    not go past the home page. Every link I click loads the home page.
    I have followed the directions for uncommenting lines in the
    web.xml file (they were already uncommented) and made sure the "see
    if file exists" option is unchecked in IIS. Still no luck.
    Any ideas?

    Any possible solutions to this problem?

  • A php search engine that only shows results that match entire serch string

    I have set up a dreamweaver search engine through php and a fulltext search (WHERE MATCH (....) AGAINST (...). However, when someone inputs more than one word into the search form, the search engine churns out results that only have one of those words. How do I get it to only show results that have all the search string words inside? (or, at least, how do I get those results to show up at the top?)
    I have seen some advice (here) that uses php code to process the search query, divide up the words, and place a BOOLEAN '+' between each of the words. By doing this, the search engine will only show results that fully match all the terms.
    My problem is that I do not know how to put this code into my Dreamweaver-created code.
    My dreamweaver created code:
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $form_rsSearch = "-1";
    if (isset($_get['search'])) {
      $form_rsSearch = $_get['search'];
    mysql_select_db($database_dataConnect, $dataConnect);
    $query_rsSearch = sprintf("SELECT title, content FROM encyclopedia WHERE MATCH (title, content) AGAINST (%s)", GetSQLValueString($form_rsSearch, "text"));
    $rsSearch = mysql_query($query_rsSearch, $dataConnect) or die(mysql_error());
    $row_rsSearch = mysql_fetch_assoc($rsSearch);
    $totalRows_rsSearch = mysql_num_rows($rsSearch);
    $input_rsSearchResults = "-1";
    if (isset($_GET['search'])) {
      $input_rsSearchResults = $_GET['search'];
    mysql_select_db($database_EMdataConnect, $dataConnect);
    $query_rsSearchResults = sprintf("SELECT title, content FROM encyclopedia WHERE MATCH(title, content) AGAINST(%s)", GetSQLValueString($input_rsSearchResults, "text"));
    $rsSearchResults = mysql_query($query_rsSearchResults, $dataConnect) or die(mysql_error());
    $row_rsSearchResults = mysql_fetch_assoc($rsSearchResults);
    ?>
    and the code the website (link above) gives is:
    function search(String $search_string) {
         //strip Boolean search characters out of search string
         $search_string = string_replace($search_string,"+","");
         $search_string = string_replace($search_string,"-","");
         $search_string = string_replace($search_string,"*","");
         //split the search string up into an array of words
         Array $tokenized_search = split($search_string, " ");
         //init an empty final search string
         String $processed_search = "";
         //for each word in the search, wrap it
         //with an + and * character and then append
         //it to the processed_search variable
         foreach($tokenized_search as $token) {
              $processed_search+="+"+$token+"* ";
         //build the sql for the query and query the DB
         String $db_query = "select id, description
              from product_descriptions
              where MATCH(description)
              AGAINST ('"+$processed_search+"' IN BOOLEAN MODE)";
         Array results = execute_database_query($db_query);
         return results;
    If anyone can instruct me on the correct way to go about this, I would be very much obliged.
    Thank you,
    YWSW

    Don't use the Search bar, type the address in the Location bar.

  • Access query strings in a search results page with custom display template

    am trying to create a  custom display template in my search results page , so i went to download the itemdefault html file and renamed it and  saved as  different file.and  am started to updating.
    the issue i am facing here is : in my  search results page there are 2 query strings, which are passed by anotehr .net appln[ another asp.net appln will be sending the query string to my sp 2013 search results page]
    but, how can i  read these 2  query strings using jslink and  new token _#- ? 
             <!--#_
               var QStringResults= null;
    ctx.OnPostRender = [];
    ctx.OnPostRender.push(function(){ 
    QStringResults= getQuString(); //here am unable to read the QStringResults value 
     _#-->  
    the below is my cstomhtml file
    am unable to  get the values :
                   <a href="http://srvrname:2013/sites/CMP/_layouts/15/BIFAddInputRef/bifpage1.aspx?bif1=_#= $htmlEncode(QStringResults) =#_"> Add Input Reference </a>
    <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"> 
    <head>
    <title>Item BIF</title>
    <!--[if gte mso 9]><xml>
    <mso:CustomDocumentProperties>
    <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
    <mso:MasterPageDescription msdt:dt="string">Displays the default result item template.</mso:MasterPageDescription>
    <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
    <mso:TargetControlType msdt:dt="string">;#SearchResults;#</mso:TargetControlType>
    <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
    <mso:ManagedPropertyMapping msdt:dt="string">'Title':'Title','Path':'Path','Description':'Description','EditorOWSUSER':'EditorOWSUSER','LastModifiedTime':'LastModifiedTime','CollapsingStatus':'CollapsingStatus','DocId':'DocId','HitHighlightedSummary':'HitHighlightedSummary','HitHighlightedProperties':'HitHighlightedProperties','FileExtension':'FileExtension','ViewsLifeTime':'ViewsLifeTime','ParentLink':'ParentLink','FileType':'FileType','IsContainer':'IsContainer','SecondaryFileExtension':'SecondaryFileExtension','DisplayAuthor':'DisplayAuthor','CMPBIFURL2':'CMPBIFURL2'</mso:ManagedPropertyMapping>
    <mso:_dlc_DocId msdt:dt="string">X3CVW7PXYF6P-3-222</mso:_dlc_DocId>
    <mso:_dlc_DocIdItemGuid msdt:dt="string">3ed12157-ea19-4591-b9cd-7a826aef35dc</mso:_dlc_DocIdItemGuid>
    <mso:_dlc_DocIdUrl msdt:dt="string">http://srvrname:2013/sites/CMP/_layouts/15/DocIdRedir.aspx?ID=X3CVW7PXYF6P-3-222, X3CVW7PXYF6P-3-222</mso:_dlc_DocIdUrl>
    </mso:CustomDocumentProperties>
    </xml><![endif]-->
    </head>
    <body>
        <script>
            $includeLanguageScript(this.url,"~sitecollection/_catalogs/masterpage/Display Templates/Search/BIFJScript.js");
        </script>
        <div id="Item_BIF2">
    <!--#_ 
            if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)){
                var id = ctx.ClientControl.get_nextUniqueId();
                var itemId = id + Srch.U.Ids.item;
    var hoverId = id + Srch.U.Ids.hover;
    var hoverUrl = "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Default_HoverPanel.js";
                $setResultItem(itemId, ctx.CurrentItem);
    if(ctx.CurrentItem.IsContainer){
    ctx.CurrentItem.csr_Icon = Srch.U.getFolderIconUrl();
    ctx.currentItem_ShowHoverPanelCallback = Srch.U.getShowHoverPanelCallback(itemId, hoverId, hoverUrl);
                ctx.currentItem_HideHoverPanelCallback = Srch.U.getHideHoverPanelCallback();
    _#-->
             <!--#_
               var QStringResults= null;
    ctx.OnPostRender = [];
    ctx.OnPostRender.push(function(){ 
    QStringResults= getQuString();
     _#-->  
            <div id="_#= $htmlEncode(QStringResults) =#_" name="bifItemqstring" 
                    data-displaytemplate="DefaultItem" class="ms-srch-item" 
                    >
                    <h5 style="color:ghostwhite;background-color:black">
                        <a href="_#= ctx.CurrentItem.Path =#_"> _#= ctx.CurrentItem.Path =#_</a>
                    </h5>
                </div>
                <div id="_#= $htmlEncode(itemId) =#_" name="bifItem" 
                    data-displaytemplate="DefaultItem" class="ms-srch-item" 
                    onmouseover="_#= ctx.currentItem_ShowHoverPanelCallback =#_" 
                    onmouseout="_#= ctx.currentItem_HideHoverPanelCallback =#_">
                    <h1 style="color:ghostwhite;background-color:black">
                        <a href="_#= ctx.CurrentItem.Path =#_"> _#= ctx.CurrentItem.Path =#_</a>
                    </h1>
                    <h4 style="color:ghostwhite;background-color:black">
                        <a href="_#= ctx.CurrentItem.Description =#_"> _#= ctx.CurrentItem.Description =#_</a>
                    </h4>
                    <h4 style="color:ghostwhite;background-color:black">
                        <a href="_#= ctx.CurrentItem.LastModifiedTime =#_"> _#= ctx.CurrentItem.LastModifiedTime =#_</a>
                    </h4>
                    <h3 style="color:floralwhite;background-color:green">
                        var mybifurl1= document.getElementById($htmlEncode(QStringResults));
                    <a href="http://srvrname:2013/sites/CMP/_layouts/15/BIFAddInputRef/bifpage1.aspx?bif1=_#= $htmlEncode(QStringResults) =#_"> Add Input Reference </a>
                    </h3>
                  </div>
            <div>
            </div>
                    <div id="_#= $htmlEncode(hoverId) =#_" class="ms-srch-hover-outerContainer"></div>
    <!--#_ 
    _#-->
        </div>
    </body>
    </html>
    when i run the page , i a getting the query string value as   undefined! though the custom javascript is getting called.

    i am able to get the  results  by implementing the below:
    <h4 style="background-color:black">
                        <a onclick="javascript:mycalltojs(_#=
    ctx.CurrentItem.Path=#_) > click here </a>
                    </h4>
    hope this helps  anyone

  • Sharepoint 2013 :Content Search Web part Property Filter By Query String - How to use ?

    Hi,
    I would like to filter data that is displayed in content search web part  by using  URL.
    I tried to use Value of a parameter from a URL - Query String.Parameter1
    But have no idea how to use it.
    Can someone help me pleas ?

    duplicate thread
    http://social.msdn.microsoft.com/Forums/en-US/f9fef155-1aa3-43b5-b285-5eae5d036b8d/content-search-webpart-property-filter-by-query-string-how-to-use-?forum=sharepointgeneral
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Query to search engine

    please can any body help me in my project
    how to send query to search engine and get the answer back?

    Use URLConnection class and its I/O APIs.

  • In the search section of the tool bar, I used to have Google as my search engine now it is Norton Safe Search. How can I get Google back?

    As stated above, I used to have Google as my search engine now it is Norton Safe Search. How can I get Google back?

    See these threads about searchqu:
    *[/questions/816181]
    *[/questions/790833]

  • Sending query to third party portal from TREX Search Engine

    HI Experts,
    we need to implement normal search option in SAP portal.
    when we search any thing from portal ,
    It has to search in EP & KM and also it has to search
    windows sharepoint portal and bring the data back to SAP Portal.
    For this purpose one solution is
    1) implementing  enterpise search,
       but my client dont want to go for enterprise search(federated search).
    2) The other way
    Sending query to third party portal from TREX Search Engine
    In this way what i want is ,
    how TREX can send query to third party portal SEARCH ENGINE
    (in my case share point portal search ENGINE).
    There is no problem to search in EP & KM becuse it is default.
    To search in Micro soft Share point portal,
    TREX should pass the query to share point portal search ENGINE.
    Is there any API TO send a query to third party portal like sharepoint?
    I searched in SDN and Other sites also but i am not getting exactly what I require.
    If any one has ideas or implemented already please guide me.
    My client require searching option like this,
    we need to provide drop down box in SAP Portal with 3 options like
    1) search in Share point portal
    2) search in SAP EP & KM
    3) Search in both the portals
    please provide any code samples in case if you have.
    please help me , its urgent
    Thanks in advance.
    Regards
    Bala

    Hi Bala,
    please check the information on the KM IMS (Index Management Service) in KMC's developer guide. A connection to a 3rd party search is done from KM, then calling TREX and XY in parallel, not serially from TREX.
    Here's a paper describing this for an older KM release:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5e514b57-0701-0010-3796-deb3636835fa
    Regards, Karsten

  • Federated Search without Query String?

    I need to configure Federated Search for a URL having search text box & button.  It does not provide a query string.
    Can I configure Result Source without Query String?
    (www.domain.com)

    No, you cannot do it OOTB. SharePoint supports OpenSearch 1.1 which doesn't contain other nethods except GET

  • Content Search Webpart Property Filter By Query String - How to use ?

    Hi,
    I would like to filter data that is displayed in content search web part  by using  URL.
    I tried to use Value of a parameter from a URL - Query String.Parameter1
    But have no idea how to use it.
    Can someone help me pleas ?

    Hi,
    I am looking for solution to filter data on content search web part ( SP 2013)  by using  URL.
    For example:
    My URL is: http://SiteCollName/Sitename/Pages/PageName.aspx?MyParameter1=XXXX
    Result : Display results that field "My field" contains XXXX.
    nikita

  • After resetting firefox as it crashed unless on safe mode can't use google search engine

    I had to reset Firefox after it crashed unless in safe mode I tried the disable hardware acceleration still crashed so reset. Lost all my bookmarks and history etc and my google search bar no longer works in fact my search bar doesn't work whichever search engine I try and I can't sync either as I have an unknown error

    After a reset, you should find an Old Firefox Data folder on your desktop. If you can find that, you may be able to recover your bookmarks and other data from it. Is it there?
    On your question about your Google search bar, is it the built-in Firefox search bar with the search engine selection drop-down on the left end?
    Do any of these search boxes work:
    * Address bar (also known as URL bar)
    * Built-in Firefox home page (if you use it)
    * Built-in new tab page (if you use it)

  • WOT Safe Search Engine is missing, after installing WOT on Firefox. How can I get it?

    I just installed Ubuntu 10.4.2 yesterday and it includes Firefox. Today I added WOT (Web Of Trust) to Firefox, and did not get WOT Safe Search Engine with it. I searched Firefox add ons for the engine, WOT showed up on the list, so I added it again, in hopes that it was the engine or would include it this time. I still can't get the engine, even in the "Manage Search Engines" window. How can I get the only search engine I trust (except for eBay and Wikipedia)?

    This is an iPad question, it should be asked in this community:
    https://discussions.apple.com/community/ipad/using_ipad
    Please post it there.

  • How to customize the SharePoint 2010 search query string parameters

    Hi All,
    I am trying to redirect default SharePoint search to a custom search results page.
    I modified the Search Settings to redirect to the URL that I want.
    But my custom search page takes different query string parameters to provide the results.
    Eg: SharePoint search passes k=search term when we perform a search. But my custom page needs
    test=search term
    I would like to pass 'test' instead of 'k' as a query string. Is this possible?
    Thanks
    Carol

    There is no way out of the box to change it.  You could always write your own control that passes the value or inherit from SearchBoxEx web part (if you are using a search center) to pass a different value.  Query String Filter web part won't
    help you here I am afraid.  However, wouldn't it be easier just to change your code to take the value that SharePoint passes you?
    Corey Roth - SharePoint Server MVP blog:
    www.dotnetmafia.com twitter: @coreyroth

Maybe you are looking for

  • Can connect via ethernet cable, have good Airport signal but no connection

    Hey folks, Pesky problem. I'm trying to connect to my wireless airport extreme basestation and having problems. Everythings hooked up correctly and if I plug the ethernet cable from the modem directly to the powerbook it works fine. The odd thing is

  • Error installing KB2855336-x64 patch on Windows 8 64 bit machine

    Hi I am trying to install KB2855336-x64 patch on my windows 8 machine. The installation is getting failed while installing through automatic updates as well as manual installation. When I checked WindowsUpdate.log file, I saw below message. Is there

  • Power Mac Dual G5 (March '04) freezes after disk reformat & Tiger Reinstall

    Looking for some help ... read many of the G5 related threads but not sure what to do next. Within the last month or two the machine started just shutting itself down (at first I thought the kids were doing it!) - it would also just freeze up. But it

  • Printing Stage

    Hello! In the following of my previous project that i mention on my last post, i will need now to be able to print the elements contained on the stage (text input information given by the user combined with some text and images) on a format of a A4 l

  • Is there a keyboard shortcut to insert snippets?

    Is it possible to insert a snippet without resorting to the snippets panel? Something like Completion Insight for snippets would make it a lot more useful.