With and without www. help?

by Sonny1977 17 replies
Hello!

Since this is my first post here i guess i should thank the forum for providing valuable info for a good while now, so thanks warriors!

Well anyway my issue is this:

I just got my first "real" website up and running and now when i type in to my browser www.mydomain.com there comes http://www.mydomain.com and when i just type mydomain.com there comes http://mydomain.com .

1. Now ive heard that this could be some sort of a problem, is it?

2. And if it is how do i fix it?

I use cpanel and made this site using RVSitebuilder

Thanks,

Sonny
#main internet marketing discussion forum #www
Avatar of Unregistered
  • Profile picture of the author RiverRock03
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[6621].message }}
    • Profile picture of the author Sam Rodrigo
      Originally Posted by RiverRock03 View Post

      I don't think it is a problem. However, if you prefer your site to always show www. in the domain like when you type in google.com you get www:google:com, you need to add a text file to the main folder for your website and name it .htaccess. Then put this code in it.

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

      HI,
      It can be a problem IF your STATS are divided between http://www.yoursite.com and http://yoursite.com --effectively giving each site perhaps 50% of the traffic.

      It just best to be clear about the situation and have ALL traffic go to one place.

      Success,
      Sam
      Signature
      RICH SAGE BLOG

      LOCAL AFFILIATE GOLD MINE:
      >> CLICK: BiiG NETWORK LAUNCH WSO
      <<
      SIGN UP FREE. LIMITED NICHES/LOCATIONS!
      {{ DiscussionBoard.errors[6645].message }}
    • Profile picture of the author Sonny1977
      Originally Posted by RiverRock03 View Post

      I don't think it is a problem. However, if you prefer your site to always show www. in the domain like when you type in google.com you get www:google:com, you need to add a text file to the main folder for your website and name it .htaccess. Then put this code in it.

      RewriteEngine On
      RewriteCond %{HTTP_HOST} ^yoursite.com [nc]
      RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L]
      I tried to create .htaccess file to my public_html/ folder, but it says that .htaccess already exists, what to do???

      And if anybody wants to give me an answer, remember that i dont know crap about computers=) so try to make it simple... cpanel is what im using

      Thanks,

      Sonny
      {{ DiscussionBoard.errors[10132].message }}
      • Profile picture of the author imb
        Originally Posted by Sonny1977 View Post

        I tried to create .htaccess file to my public_html/ folder, but it says that .htaccess already exists, what to do???

        And if anybody wants to give me an answer, remember that i dont know crap about computers=) so try to make it simple... cpanel is what im using

        Thanks,

        Sonny
        Try editing the .htaccess file that you see in your file manager and put those codes in a new line.
        Signature

        {{ DiscussionBoard.errors[10142].message }}
      • Profile picture of the author Sonny1977
        Originally Posted by imb View Post

        Try editing the .htaccess file that you see in your file manager and put those codes in a new line.
        I dont see it there

        Originally Posted by Jeff Hope View Post

        Sonny,

        If you'll PM me your Cpanel URL & login info, I'll take care of it for you. (You can change your password temporarily, then change it back if you like).

        Jeff
        Thanks but i should really learn how to do it myself since ill be doing lots of add on domains...

        Sonny
        {{ DiscussionBoard.errors[10151].message }}
        • Profile picture of the author imb
          Originally Posted by Sonny1977 View Post

          I dont see it there
          Try using FTP, it should be there. If not maybe your host disabled viewing of .htaccess (some hosts does this), you should contact them and tell them what you need to do.
          Signature

          {{ DiscussionBoard.errors[10152].message }}
        • Profile picture of the author waken
          Originally Posted by Sonny1977 View Post

          I dont see it there


          Sonny
          It should be right there at the base public.html folder..
          {{ DiscussionBoard.errors[10231].message }}
          • Profile picture of the author Jill Carpenter
            Wow, this is killer info.

            I noticed when checking my backlinks I needed to check both the www and without. I got very different results for each.

            This could explain a lot for me.

            Looks like I have some clean up. Just not sure how to properly proceed.
            Signature

            "May I have ten thousand marbles, please?"

            {{ DiscussionBoard.errors[10241].message }}
      • Profile picture of the author AlexR
        Originally Posted by Sonny1977 View Post

        I tried to create .htaccess file to my public_html/ folder, but it says that .htaccess already exists, what to do???

        And if anybody wants to give me an answer, remember that i dont know crap about computers=) so try to make it simple... cpanel is what im using

        Thanks,

        Sonny
        You can't "create" a new .htaccess file on the server through filemanager as it isn't really a file name, but a file type...that's why it has the dot in front of it, so it would be like trying to create a new .html file without a name, you can't do it, but if you create the file in notepad or any text editor, you can save it and rename as .htaccess, then upload it to your directory. It should overwrite the old file.

        I'm not a big fan of Cpanel as file manager is limited in it's functionality. You would be better off getting an FTP (File Transfer Protocol) program to move files around, it also makes it easier to see the structure of your site (including hidden files) and to backup everything to your PC.

        If you haven't used an FTP prog before, it may take a few minutes to get your brain around it, but i't relatively straight forward once you've done it once and you don't have to keep logging into cPanel evey time you want to make a change or transfer/update a file.

        Coffee Cup is a good FTP client and is easy to use. It's available for free at http://www.coffeecup.com/free-ftp/

        Alex
        Signature

        Sig released on parole.

        {{ DiscussionBoard.errors[10180].message }}
        • Profile picture of the author Terry Hatfield
          Hi,

          I've noticed my wordpress blogs that I install on my sites have addresses like http://domainname

          But even if you type the blog name in with www.domainname it redirects to the blog and the address bar ends up at the domainname anyways without the www on it.

          I have always sent my anchor text from my articles to the domain without the www on it for my blogs.

          Not sure if this right way to do it or not?

          Life is Great,
          Terry
          {{ DiscussionBoard.errors[10215].message }}
  • Profile picture of the author DougBarger
    Hey Sonny,

    Don't know if this will help or not,

    but if you just enter your domain name in the address bar

    without the "http://" or ".com" extension

    and press the "control" key and the "enter" keys simultaneously,

    it will still pull up your site as if you had entered it in manually.

    So if what you are experiencing is the reverse of that,

    then perhaps pressing the Ctrl and enter keys together

    will solve the problem.

    Hope this helps,

    Doug
    {{ DiscussionBoard.errors[6623].message }}
  • Profile picture of the author sarthakbehl
    If it is situation like this then contact to the service provider and tell them about this
    Signature

    (Because I am 12 years Old... Well, soon, anyways)
    {{ DiscussionBoard.errors[10468].message }}
Avatar of Unregistered

Trending Topics