Mobile app version of vmapp.org
Login or Join
Connie744

: Using URL without query parameter for Sitelinks Searchbox? All the examples I see to attempt to gain a search box in sitelinks in the SERPs use a target URL that has a URL parameter like

@Connie744

Posted in: #RichSnippets #SchemaOrg #Search #Url

All the examples I see to attempt to gain a search box in sitelinks in the SERPs use a target URL that has a URL parameter like so:
example.com/search?q={search-string}

Can any URL be used or does this only work with query parameters? For example:
example.com/search/{search-term}

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Connie744

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo487

Of course it should be possible to use any kind of URL design. It wouldn’t make sense for Google to exclude many sites just because they don’t use the URL’s query component for the search function.

Did you check Google’s documentation? For the target property it says:


"This must be a URL that points to an address on the same domain as the content being searched."
"It must also include a variable name in braces that is a placeholder for the user's search query."
"Your server should assume and support UTF-8 values for user search queries."


So there’s nothing documented that would restrict which URL design is supported.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme