My URL doesn't work without WWW

Soldato
Joined
4 Oct 2003
Posts
7,444
Location
Sheffield, S.Yorks
Ok, so here's my problem.

http://www.the-iblog.com works fine.

http://the-iblog.com doesn't.

Now I suspect that the reason is something to do with Google Apps. When I bought the domain through Blogger, it came with google apps. The URL without the WWW is trying to take you to my Google Apps start page, which I have disabled.

Does anyone have any ideas as to how to sort this out?

Thanks.
 
DNS is pointing each domain at a different IP address:

You will need to set up the-iblog.com to point at the same IP address as www.the-iblog.com. Do you have a DNS control panel as part of your hosting ?

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\hodsonb>ping www.the-iblog.com

Pinging ghs.l.google.com [72.14.207.121] with 32 bytes of data:

Reply from 72.14.207.121: bytes=32 time=-25ms TTL=244
Reply from 72.14.207.121: bytes=32 time=268ms TTL=244
Reply from 72.14.207.121: bytes=32 time=269ms TTL=244

Ping statistics for 72.14.207.121:
Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 268ms, Maximum = -25ms, Average = 170ms
Control-C
^C
C:\Documents and Settings\hodsonb>ping the-iblog.com

Pinging the-iblog.com [64.233.179.121] with 32 bytes of data:

Reply from 64.233.179.121: bytes=32 time=115ms TTL=240
Reply from 64.233.179.121: bytes=32 time=116ms TTL=240
Reply from 64.233.179.121: bytes=32 time=115ms TTL=240
Reply from 64.233.179.121: bytes=32 time=114ms TTL=240

Ping statistics for 64.233.179.121:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 114ms, Maximum = 116ms, Average = 115ms

C:\Documents and Settings\hodsonb>
 
im lost, surely the www, as well as the http:// is automatically added by the browers and nothing to do with your site?

Nope. www is just an unnecessary subdomain which for some reason has become widely accepted as a normal part of every web address. Most servers will just ignore the www and serve whatever's at the root domain, though some will behave differently.
 
For SEO purposes you probably want non www URLs to 301 to www URLs.

Or the other way around. I personally find the www. silly and do a 301 redirect to blah.com from www.blah.com

http://no-www.org

The VirtualHost directive for my domain, using mod_rewrite for the redirect.

Code:
<VirtualHost *:80>
    DocumentRoot /usr/local/www/cheezyblog.net/docs
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{HTTP_HOST} ^www\.cheezyblog\.net$ [NC]
        RewriteRule ^(.*)$ http://cheezyblog.net$1 [R=301,L]
    </IfModule>
    <Location ~ "\.svn">
        Order allow,deny
        Deny from all
        Satisfy All
    </Location>
    ServerName cheezyblog.net
    ServerAlias www.cheezyblog.net
    ErrorLog /usr/local/www/logs/cheezyblog.net.error.log
    CustomLog /usr/local/www/logs/cheezyblog.net.access.log combined
</VirtualHost>
 
Last edited:
random but, thanks for your blog, just found that Apple is opening a store in Liverpool!

Going to apply for a job there for over summer, get some money before I go on holiday !
 
random but, thanks for your blog, just found that Apple is opening a store in Liverpool!

Going to apply for a job there for over summer, get some money before I go on holiday !

LOL, glad to be of service !

Make sure you visit again ;)
 
Back
Top Bottom