12

I'm working with a local server that spits out some XML. Whenever I go to change the url, say from myserver.local:8080/servlet?p1=foo&p2=blah to myserver.local:8080/servlet?p1=foo&p2=otherblah it tries to search google for "myserver.local:8080/servlet?p1=foo&p2=otherblah". I then remember I have to put http:// in the front, and THEN it knows to find it.

I don't want to disable google searching from the address bar, but how can I make it recognize that this is a server it can connect to without explicitly putting http:// in the bar every time. When you're debugging you're constantly changing parameters and it's annoying to make the same change over and over again.

3
  • I just tried to replicate but it works for me. What version of Chrome are you using? What method of entering the text into the bar are you using? Normally, I have the opposite issue with chrome. If I try to do a search for a file within chrome, it treats it as a web address due to the extension as opposed to doing a search for the filename. Feb 21, 2012 at 20:39
  • If I enter 1rnvg91:8080/pallet? it takes me to Google. If I enter http://1rnvg91:8080/pallet? it takes me to my server like it should.
    – corsiKa
    Feb 21, 2012 at 20:42
  • I see. The issue here is that there doesn't seem to be a "." anywhere in your url. The way that the google search/http bar works is it searches your input for a period surrounded by alpha chars (no spaces), and if it finds one, will treat it as a domain (automatically put http://) Without the period surrounded by alpha, it thinks you're entering search terms. Feb 21, 2012 at 20:58

1 Answer 1

2

Edit: Second possibility. If you're running off of windows, and the extra typing is slowing you down, check out PhraseExpress. Using this software, you can quite easily define a phrase that will automatically output http:// before your server links.

If you were copying and pasting, the phrase/macro content would look something like this: http://{#INSERTCLIPBOARD}

If you're manually typing it in, just remove everything after the second slash and add your choice address. Then all you have to do is set up a hotkey or autotext trigger to output the desired phrase.

The software seems daunting at first, but as someone who's been using it for a while, trust me, it's really useful, and will drastically cut back your workflow.

---ORIGINAL ANSWER BELOW---

If you're only working from one machine, you can edit the host file on your client machine/access terminal to make whatever url point to your server's IP address. For example, you can edit the host file to state that requests to "myserver.com" automatically go to a custom ip address that you define in the host file. You can then enter a link such as "myserver.com:8080/pallet?" into google, and it should redirect you accordingly.

if you're in a domain environment (in a corporate network, usually), you can enter the full domain name of your server (e.g. 1rnvg91.MyDomain:8080/pallet?). That should also work properly.

More info on editing the hosts file, in case you don't know: enter link description here

7
  • I had considered the hosts file before, but decided against it. Fully qualifing the server path appears to have fixed it. Unfortunate, but it will work for my testing purposes. Thanks!
    – corsiKa
    Feb 21, 2012 at 21:41
  • In response to your edit, all I want to do is take a URL that already exists in the address bar, change the last couple letters on the end, and hit it again. Right now, If I go to a page with http://, the http:// disappears, meaning if I press enter a second time, I am taken to a different page. That's bad.
    – corsiKa
    Feb 21, 2012 at 23:13
  • @corsiKa This can also be done. PhraseExpress has macro capabilities. You can also simulate keystrokes in addition to text. You can use hotkey/key combos to A) simulate an "End" keystroke, highglight a selection, and change it, and B), enter a simulated "Home" key, and automatically output "Http://", and then simulate pressing an "enter". All you would have to do is set up the correct phrases/keycombos. This software can also copy to/paste from the clipboard, as well as a TON of other things. Really helps to automate workflow. There's a bit of a learning curve, but worth it. Feb 22, 2012 at 1:59
  • this post does not answer the question. it is like answering "how to install osx?" with "buy a new iMac and place it next to your pc"
    – Superole
    Jan 24, 2014 at 13:37
  • No, it's not. First off, this is from 2012. Secondly, there is no way to force chrome to show the HTTP. Google turned it off and deliberately did not make it configurable. I provided a solution to alleviate the annoyance. If you need this question answered for your purposes, please re-ask the question with your specifics instead of reviving the long-dead. Jan 25, 2014 at 18:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .