Why does my site only work if I don't write the "www." part?

9 replies
I tried to google this but didn't find any actual answer for this (or at least not one that I would've understood).

For example if my domain was "tatada" it will show up when I type "tatada.com" but not when I type "www.tatada.com" . What is the problem? :confused:

Edit: Oh and it doesn't give me any errors or anything with the "www", it's just a blank page where it reads "index" on the upper left corner , nothing more.
#part #site #work #write #www
  • Profile picture of the author iuditg
    Use htaccess and add a proper 301 redirection that would solve your problem. Are you using wordpress or just static HTML/CSS files ?
    {{ DiscussionBoard.errors[5817350].message }}
  • Profile picture of the author i am brad
    If you have a wordpress site. Go to Settings ->General and you will see wordpress address and site address. Both by default do not include the (www). Add www to the url and click save and you should be good to go.
    {{ DiscussionBoard.errors[5817371].message }}
  • Profile picture of the author Jere Kuisma
    Oh I'm not using wordpress, just HTML/CSS files.
    {{ DiscussionBoard.errors[5817381].message }}
  • Profile picture of the author Jere Kuisma
    Anyone? I didn't get anything out of iuditg's help and I'm not even sure if it was meant for wordpress.
    {{ DiscussionBoard.errors[5818275].message }}
    • Profile picture of the author BlueLayerHost
      Originally Posted by Quahas View Post

      Anyone? I didn't get anything out of iuditg's help and I'm not even sure if it was meant for wordpress.
      He's right, just google for "how to setup a 301 redirect with htaccess".
      Signature
      BlueLayerHost - Shared + Managed VPS Hosting
      BlueLayerMedia - Web Development
      WPMalware - Resource for WordPress Seurity + Exploits
      {{ DiscussionBoard.errors[5818408].message }}
  • Profile picture of the author James.N
    FTP to your site and edit your .htaccess file. Add this into it:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

    This will redirect all non www traffic to www

    Note: Unless you know what you're doing you really shouldn't be messing with the htaccess and you can mess some things up. At least make a copy before changing anything.
    {{ DiscussionBoard.errors[5818419].message }}
    • Profile picture of the author Jere Kuisma
      Originally Posted by quadxnet View Post

      FTP to your site and edit your .htaccess file. Add this into it:

      RewriteEngine On
      RewriteCond %{HTTP_HOST} !^www.
      RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

      This will redirect all non www traffic to www

      Note: Unless you know what you're doing you really shouldn't be messing with the htaccess and you can mess some things up. At least make a copy before changing anything.
      Is there another way than htaccess? Cause what the heck I'm supposed to do if I can't mess with it but there's no other option : D

      I googled it and this stuff really seems weird to me but I guess I'll try. I was wondering that couldn't this be done through hostgator somehow? As I'm using them as a host and seems like they got plenty of things automated for me.
      {{ DiscussionBoard.errors[5819116].message }}
      • Profile picture of the author ivarvd
        Maybe you can solve this issue with the DNS settings of your domain.
        It would be unusual but perhaps in DNS (which translates the name of your website to an ip address) the 'www' subdomain is not defined. It should be mapped to the same ip address as the domain itself. If you registered the domain at hostgator then take a look in the control panel there.
        {{ DiscussionBoard.errors[5819782].message }}
  • Profile picture of the author woobie
    If you use Google Webmaster Tools, you can do this under "Site Configuration > Settings". You will have 2 options. i.e.

    "Display URLs as www.tatada.com"

    or

    "Display URLs as tatada.com".
    {{ DiscussionBoard.errors[5821789].message }}

Trending Topics