1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem when after changing server (changing hostgator)

Discussion in 'BlackHat Lounge' started by 2DHades, Nov 19, 2013.

  1. 2DHades

    2DHades Power Member

    Joined:
    Feb 8, 2011
    Messages:
    657
    Likes Received:
    322
    Hey there,

    I have a big problem, and my website have been down for 72+ hours already, and Im afraid I will lose some rankings because of this. (Sory if the Lounge is not appropriate for such thraed, but I couldn't find anything more suitable.)


    Anyway, I exported all files from the hostgator FTP, also exported the database. Then changed the DNS.


    Then I created a new database and user, using the new hosting. Edited the wp-config using the new database name, user and pw. And imported the old database (also edited the SQL file with the new database name).

    I'm using a subdomain for this website, and now when I try to open xyz.mydomain.com I get "SERVER NOT FOUND" / "WEB PAGE IS NOT AVAILABLE"
    Strange thing is that when I go to mydomain.com/xyz/ I can open some of the files, but when I try the index.php - it doesn't work. I tried to insert a dummy index.html just to test if it works, and it worked. Xyz.mydomain.com/index.html also doesn't work. I think the database is set up correctly, and I dont know where is the problem.

    I have double and triple checked if all files were successfully exported from the old FTP.

    I have no idea what could be the problem. I tried to who.is my website, and the DNS are correct.

    I know that subdomains take some time to propagate, yet its been 24 hours + (And I was able to reach mydomain.com/xyz/index.html but not mydomain.com/xyz/index.php)

    Any ideas?

    THANKS!
     
  2. The Scarlet Pimp

    The Scarlet Pimp Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 2, 2008
    Messages:
    787
    Likes Received:
    3,117
    Occupation:
    Chair moistener.
    Location:
    Cyberspace
    check your htaccess file.
     
    • Thanks Thanks x 1
  3. 2DHades

    2DHades Power Member

    Joined:
    Feb 8, 2011
    Messages:
    657
    Likes Received:
    322
    I deleted it, cuz I thought it might be causing troubles.

    Any other ideas? Its still not loading.
     
  4. th0m4s

    th0m4s Regular Member

    Joined:
    Jul 8, 2013
    Messages:
    243
    Likes Received:
    57
    What hosting panel are you using?

    You may need the .htaccess file for the subdomain to tell it where the files are.

    Also your subdomain is using the correct DNS and it is not cached on your local computer to the old IP?
     
    • Thanks Thanks x 1
  5. BoostAlexaRank

    BoostAlexaRank Newbie

    Joined:
    Nov 8, 2013
    Messages:
    5
    Likes Received:
    2
    Occupation:
    www.boostalexarank.com
    Home Page:
    if you can reach the files by adding .html at the end and not .php it seems to me that the files are saved in html format and not php
     
    • Thanks Thanks x 1
  6. 2DHades

    2DHades Power Member

    Joined:
    Feb 8, 2011
    Messages:
    657
    Likes Received:
    322

    I just checked my htaccess file, and I dont see anything that says where the files are.


    Here is what I have in the htaccess file, is there anything strange?

    Code:
    Options -Indexes
    
    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
        <IfModule mod_headers.c>
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
            AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
        <IfModule mod_mime.c>
            # DEFLATE by extension
            AddOutputFilter DEFLATE js css htm html xml
        </IfModule>
    </IfModule>
    # END W3TC Browser Cache
    # BEGIN W3TC Page Cache core
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteCond %{HTTP:Accept-Encoding} gzip
        RewriteRule .* - [E=W3TC_ENC:_gzip]
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} =""
        RewriteCond %{REQUEST_URI} \/$
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
        RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index.html%{ENV:W3TC_ENC}" -f
        RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index.html%{ENV:W3TC_ENC}" [L]
    </IfModule>
    # END W3TC Page Cache core
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    
    # END WordPress
    
     
  7. 2DHades

    2DHades Power Member

    Joined:
    Feb 8, 2011
    Messages:
    657
    Likes Received:
    322
    Also I haven't changed the DNS for the subdomain, I dont know how to do that
     
  8. th0m4s

    th0m4s Regular Member

    Joined:
    Jul 8, 2013
    Messages:
    243
    Likes Received:
    57
    If you are not sure how to set it up then try contacting your hostings support team, they may be able to help.
     
  9. Nigel Farage

    Nigel Farage BANNED BANNED

    Joined:
    Feb 8, 2012
    Messages:
    563
    Likes Received:
    1,495
    This statement is backwards. You don't change the DNS for the subdomain, you change the DNS Server to point TO the subdomain. You need to know the IP Address of the subdomain in order to do this.

    Someone asked you a question back there, about who your host service was. Answer that question, and any other questions that are asked. The way things work on online forums is that, if the OP is flaky, people that know things will not waste their time.
     
  10. davids355

    davids355 Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 25, 2011
    Messages:
    8,770
    Likes Received:
    6,305
    Home Page:
    I think on some systems wordpress needs some config in htaccess so that it interprets php files correctly. maybe its something to do with that.
     
  11. th0m4s

    th0m4s Regular Member

    Joined:
    Jul 8, 2013
    Messages:
    243
    Likes Received:
    57