You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to I auto-add .com in Safari?

I'm new to Mac, and trying to get used to using Safari.


In other browsers, when I type in a URL, I would use CTRL-Enter (on a PC) and the www would be added to the front of the URL, along with the .com at the end of the URL.


I can't find a similar key combo in Safari. I've done several Google searches regarding the issue, and people state that it should always be added automatically. While that's true for sites I've already visited, it's not true for sites I go to for the first time. For those sites, I end up with some Brighthouse Cable DNS search page (which I assume must have gotten redirected at the router, since there's no way the MacBook could have known I have Brighthouse cable).


Any suggestions? Or is this just the way Safari works?


Charlie

MacBook Pro (Retina, Mid 2012), Mac OS X (10.7.4), My very first MacBook Pro

Posted on Jun 16, 2012 6:03 AM

Reply
22 replies

Jul 28, 2012 7:42 AM in response to this-is-my-alias

With Safari 5.0.6 the correspondence between the text and HTML editors here is good without any of the glitches you mentioned. The correspondence between the HTML editor and the published version is almost perfect. I am unaware of any copy/paste glitches between web pages and the editors save an occasional space in place of a LF within a wrapped URL. One experienced user always edits here with Firefox - perhaps because of problems with later versions of Safari. You will find that if this forum truncates a displayed URL it will still point to the correct location. You can change this with the HTML editor if you wish.


I am still perplexed about the www - I thought you were originally giving advice to inexperienced users who know nothing about web servers. I am aware I could use one of at least 4 different ways to serve the same pages to www and non-www requests but many sites, in common with mine, do not do this.


I have used local DNS servers before but this time it was for a relatively trivial reason. When I upgraded my Netgear router to the much better DGTeam firmware I noticed that my web server logs showed the router IP for LAN requests rather than the IP of individual computers. I am not sure if the firmware changed this or if I had not noticed it before - I may have changed to DHCP at the same time. I do wish the requests would go via the internet and not be intercepted internally but that is another story. My DNS server is only used by my LAN - it forwards to 8.8.4.4. I could have modified my hosts file but unless I modified all computers including visitors it would not be as satisfactory. Having done this it reminded me why I used a local DNS server several years ago - it is always considerably faster - every Mac I have ever had has been slow at resolving DNS - it is partly, but not entirely, a bloated DNS/OT cache issue. As far as I can tell it takes about 4 ms longer to go via my DNS server rather than direct to 8.8.4.4.


I doubt that I will ever be aware of the speed issue. My ADSL line speed is 5 Mb/s down and 0.5 Mb/s up and my Mac's Ethernet capability is 10/100/1000Base-T.

Aug 5, 2012 11:04 AM in response to Neville Hillyer

I prepared the following answer for a post here (which I can no longer find) asking for a simple answer:


The simple answer is that it does not work for everybody.


Different browsers and different versions of the same browser do different things and these things depend upon other circumstances.


My Safari 5.0.6 always adds these extras for me but, apparently, the magic does not work for others.


I just found an interesting site by typing barbara in my address bar and hitting return - it took me to http://www.barbara.com/


If your browser is not so well behaved you might consider using a utility which converts key commands to whatever you want.

Aug 5, 2012 11:33 AM in response to Neville Hillyer

Hey all... I was the OP (original poster) to this question... and Neville is correct. It seems that this feature does not work for everyone. I'm assuming it's a version issue with Safari.


There was some in depth discussions regarding DNS, but after trying several DNS servers and getting the same failed results, I believe this is incorrect. Everyone that has stated this works correctly for them is using Safari 5.x. I'm using Safari 6.0.


After doing a lot of searching for the correct answer, I believe it's actually a Safari issue with the way typing in to the URL bar is handled. I have come to this conclusion by watching the bar as I type. I'll try to demonstrate here with a couple pictures to show what I mean.


First, if I start type in an address that I've been to, the auto-complete fills in the whole thing and I don't have to type the whole address, like shown here:


User uploaded file


You can see in that screenshot that after I type this first few letters, the website filled in itself.


Now in this screenshot, I will attempt to go to Microsoft's website. This is where Safari fails in it's execution.


User uploaded file


You can see several things here. Firstly, even though I have typed in the full name of the site (minus the www and .com), to the right of where I'm typing, the text says "Google Search". Safari plans on executing a Google search for the info I just typed in. If you look further down the list of options, you can see one called "Go to Site Microsoft". If I just hit enter at this point, a Google search comes up searching for Microsoft. If I use the arrow key to go down to the "go to" section, I will be directed to www.microsoft.com even though I didn't type everything in.


And this is where the root of the problem lies. By default, if you haven't visited a site yet, a search is always performed. If you have visited a site, you can go to that site without typing the full URL.



It's possible (probable, even) that those users who came from previous versions of Safari might not have this issue. However, for someone new to Mac like myself that started off with Safari 6.0, this will never work.


Again, to show further evidence, if I type in to the URL bar Compuware (where I work), you can see that even after typing this in, the icon on the left is still a search icon, and on the right it will say Google search.


User uploaded file


Now, once I finish typing .com to the end, you'll see that the icon to the left changes to a round circle (I assume this is the equivelant of the globe IE uses), and the search info on the right goes away.


User uploaded file


So now, when I hit enter, I'll be take directly to the site. Or I can arrow down to perform a Google search.


My initial argument still stands - Safari is broken in the way that it handles unvisited URLs. By following the standard put in place by all the other major browser - IE, FF, Chrome - and providing a Control - Enter or Command - Enter option of adding the .com to the end of the URL, this could be easily resolved.

Mar 26, 2013 2:16 PM in response to charlie74

When I use firefox the CMD+ENTER does add .com to whatever you type. In Safari it doesn't. I don't really understand why there is such an in depth discussion about this. The CTRL+ENTER/RETURN key stroke on windows/Linux does add www.-.com to whatever you type in the browser address. Safari on the mac does not accept CTRL+ENTER/RETURN. It does try to add the .com to certain addresses - but not all the time.

Keyboard shortcuts are something I always use on mac and pc. Touch screen does not allow this, but I dislike that for a plethora of other reasons. On windows the CTRL+C,CTRL+V for copy and paste is just CMD+C, CMD+V on a mac. Most keyboard shortcuts are replicated in one way or another. Just not the CTRL+ENTER, or CMD+ENTER for web addresses in Safari on a mac.

Mar 28, 2013 9:37 AM in response to SJWhiteley

SJWhitley,


THANK YOU!!!!


It took 9 months since I posted the original question, and I've had folks talk about DNS issues, local internet provider issues, and everything other than the fact that CMD-ENTER does not do what would be expected in a web browser.


I tried your suggestion of placing a slash at the end of a URL, and you are correct - this will auto add the www and .com to the URL.


Agreeing with what chris_hc posted - I too am a fan of keyboard shortcuts. I use them all the time. It's disappointing that Safari misses this one common shortcut, but not a deal breaker... and as you pointed out, there is a work-around for it.


Thanks again,


Charlie

How to I auto-add .com in Safari?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.