98

I have a local Apache server running, which is defined through /etc/hosts as "apache". So I often open pages like:

http://apache/website/

Normally, this works fine. However, since I am using a more recent Chrome browser, at odd moments the browser decides that the URL I type is not a URL but actually a search, so it loads my default search engine and tries to find this URL. It often, but not always, shows a link under the address bar that says Did you mean to go to http://apache/website?. That is nice, but very annoying having to click here instead of going there directly. What makes Chrome behave this way? Can I fix this?

Giacomo1968
  • 58,727

9 Answers9

70

I had the same problem and i found that typing the / at the end will always treat it as a url instead of keyword.

For example in my case :

local.dev/ben is treated as search

but

local.dev/ben/ its working fine
40

You can implicitly do this by creating a new search engine with a URL of http://%s and keyword of null. Then, set this as the default search engine.

To get to the search engines page in chrome:

  • Open Settings panel.
  • Click Manage search engines... button under Search heading.
  • Search Engines pane has two sections: Default search engines and Other search engines
  • At the bottom of the Other search engines section, you'll see a form which we'll make use to add a new search engine.

Search Engines

Jawa
  • 3,679
iglvzx
  • 23,818
14

I got annoyed by this as well. I recently found out what caused it. Try disabling 'Use a web service to help resolve navigation errors'.

slhck
  • 235,242
Rik
  • 157
3

In latest chrome settings - Advanced settings

enter image description here

2

If you know the port you're using, you can specify it by hand like

url:80/index.html

instead of

url/index.html

In the first case, it won't be treated as a search request

Masadow
  • 129
  • 6
1

Here's how to disable the ability to make searches from the address bar (omnibox) of Google Chrome:

  1. Open Google Chrome.
  2. Type chrome://flags in the address bar and press Enter.
  3. Scroll to Enable search button in Omnibox.
  4. Select Disabled.
karel
  • 13,706
0

I had the same issue with Chrome on my Android phone. I resolved it similar to @Rik suggestion.

For mobile Chrome:

  1. Go to Settings -> Privacy
  2. Untick Navigation error suggestions
nkatsar
  • 101
0

Try add correct url to browser bookmarks. Then Chrome suggests this address on the first place (marked with star).

chrome omnibox

Axis
  • 33
0

I had to add google.co.in with the search string: http://google.com/search?q=%s to get both Google Search and URL search working.

Now if I want to browse URL I can just append 'http://whatever' and choose if i want to do a URL navigation or search.

@iglvzx's answer no longer seems to work in version 40 of Chrome. It looks like Null is not a valid entry anymore. I had to improvise as above to get this working.

fixer1234
  • 28,064
noob Mama
  • 101