Sites will not work without www

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • porn-update
    Confirmed User
    • Apr 2014
    • 423

    #1

    Sites will not work without www

    Hello to all,
    I noticed a few days ago a problem on my sites

    For example visiting adulthashtag.com without writing www, I see a 403/500 error

    writing www everything works properly.

    I found the problem only on the first access, then with or without www it does not matter, but if I delete the browser cache, I go back to see the error.

    I contacted the server service but do not know how to help me, continue to repeat: it is the fault of your ip, server resources, ip, server resources, ip, server ... like a broken record.

    I have two connections with dynamic IP and use Tor network, the server is more than good with its resources. Sometimes it breaks something when you start some big cronjob, but nothing more.

    Can you help me understand what's going on? Visiting adulthashtag.com (no www) what you see?

    The server is a shared vps with cpanel of Certified Hosting, has anyone had similar problems with these services?

    Do you have any idea to solve?

    Thank you all
  • Denny
    Too lazy to set a custom title
    • Feb 2005
    • 17399

    #2
    Forbidden

    You don't have permission to access / on this server.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
    Maybe check your .htaccess file or file permissions?

    Comment

    • porn-update
      Confirmed User
      • Apr 2014
      • 423

      #3
      with www?

      Comment

      • Denny
        Too lazy to set a custom title
        • Feb 2005
        • 17399

        #4
        Originally posted by porn-update
        with www?
        Worked with www.

        Comment

        • j3rkules
          VIP
          • Jul 2013
          • 22111

          #5
          Try to add the following code to your root .htaccess file:

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

          Comment

          • Kafka
            Confirmed User
            • Oct 2002
            • 466

            #6
            Check your dns settings , yourdomain.com AND www.yourdomain.com should point to the same server ip.
            technically you have duplicated content but google will www set as default.

            After reading your problem more thoroughly, i don't think this is the solution.

            Comment

            • porn-update
              Confirmed User
              • Apr 2014
              • 423

              #7
              Thanks for the answers.
              since yesterday, more discoveries, more confusion ...

              My domains are all registed on namesilo, all with dns dns1.icertified.net, dns2.icertified.net

              Of certified hosting I have 2 services, vps in question (where is adulthashtag.com) and a share hosting where resides a virtually identical site xxxhashtag.com


              xxxhashtag.com (hosting) it seems to work perfectly with www, even without www

              So, I think there are no changes to make on httaccess, are identical, and I do not think the problem is namesilo, are all set in the same way.

              There is something strange in cpanel? I gave a look at the area of cpanel dns management, it does not have great setting and seem equally between the 2 servers ...

              Where can be the problem?

              You see properly xxxhashtag.com without www? Maybe only I see, because of some cache?

              The ridiculous thing is that the hosting from $ 70 a year working, there vps from 70 $ a month does not work ...

              Comment

              • Kafka
                Confirmed User
                • Oct 2002
                • 466

                #8
                adulthashtag.com gives forbidden.

                Check your httpd.conf:


                <VirtualHost *:80>
                DocumentRoot /var/www/yoursite
                ServerName adulthashtag.com
                ServerAlias www. adulthashtag .com
                ...
                </VirtualHost>

                Comment

                • porn-update
                  Confirmed User
                  • Apr 2014
                  • 423

                  #9
                  I can not do ... I do not see anything over my home ... is a managed server.

                  I ask for assistance, hopefully good

                  Comment

                  • porn-update
                    Confirmed User
                    • Apr 2014
                    • 423

                    #10
                    This is the first service response

                    Hello,

                    Your .htaccess file was blocking any access to your website.
                    I have gone ahead and disabled it for you.

                    Thanks,
                    My balls are rolling on the ground ...

                    Comment

                    • porn-update
                      Confirmed User
                      • Apr 2014
                      • 423

                      #11
                      After another day wasted, the assistance decided to remove from my .htaccess gzip compression and the cahce system to solve the problem ...

                      I have no more polite words to describe them ..

                      At this point, you can suggest some good server?

                      Comment

                      Working...