Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: website direct

  1. #1
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    website direct

    hello - apologies the title is confusing and incorrect, I couldn't think of anything better but here's my question:

    I have a website (ex: www.xyz.com). There are few ways to reach this as I understand
    a) type (www.xyz.com) on the address bar and hit "enter"
    b) type (xyz) and then hit ctrl+enter

    what I want to know is how can a user be directed to my site if they just type "xyz" on the address bar and hit enter. Currently when I try this it gives me an error saying "website not found".

    Thanks in advance for your help

    I hope I was clear with my Q.
    Last edited by VIPStephan; 08-21-2013 at 09:29 AM. Reason: removed links (we don’t wanna randomly promote commercial 3rd party websites, do we?)

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,629
    Thanks
    6
    Thanked 1,002 Times in 975 Posts
    This is not in your control, the only way this would be possible was if the user themselves would create a shortcut for a bookmark to xyz.com in their browser (and only if the browser supports it), or if the user edited their hosts file to point to the specific domain or IP address. You need to learn about how the domain name system works. What you enter in the address bar must be a properly formatted domain (which is silently converted to an IP address) in order to reach a computer over the internet. Typing random characters into the address bar doesn’t tell the browser what site is supposed to be reached.

  • #3
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks mate - just wondering would a server side 301 redirect would work in this case?

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,629
    Thanks
    6
    Thanked 1,002 Times in 975 Posts
    No because still, how should the browser of average Joe know that when they type “xyz” in the address bar your website is meant in the first place? It’s just a random text string for them. Browsers look for domains or IP addresses and the typical domain contains at least one period character (if that is missing some browsers such as Firefox are by default using a search engine to search the web for the string). Top-level domains (TLD) are, among others, “com”, “net”, “biz”, or all the various country codes like “uk” (for United Kingdom), “cn” (China), “ar” (Argentina), etc. If you type “xyz” into the address bar (or any word) the browser will think you are trying to access the TLD “xyz” (as in “example.xyz”) but first of all, there is no such TLD and secondly, you can’t access TLDs directly because they are not connected to any specific site, they always go together with a second-level domain (as in “example.xyz” the “xyz” is the TLD and “example” is the 2nd-level domain).

    On your site you can 301 redirect as much as you want but people still need to type “xyz.com” to access your site in the first place because only this domain is connected to the IP address at which the website can be found. How people get to your site in the first place is solely at their discretion, not at yours.
    Last edited by VIPStephan; 08-21-2013 at 02:51 PM.

  • #5
    New to the CF scene
    Join Date
    Aug 2013
    Location
    Michigan
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This also depends upon the browser too. Browsers like Firefox and Chrome learn the web addresses you go to on a regular basis or have frequently in the past, and they use a suggestive autocomplete feature. That is, however, in the browser software.

    So essentially unless your site gets alot of traffic by each individual user then otherwise that functionality doesn't typically exist.

    PS: I use those examples of browsers because they tend to have those better suggestive autocomplete features compared to other browsers.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •