Problem when after changing server (changing hostgator)

ygg

Senior Member
Joined
Feb 8, 2011
Messages
1,097
Reaction score
587
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!
 
I deleted it, cuz I thought it might be causing troubles.

Any other ideas? Its still not loading.
 
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?
 
  • Like
Reactions: ygg
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
 
  • Like
Reactions: ygg
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?


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
 
Also I haven't changed the DNS for the subdomain, I dont know how to do that
 
If you are not sure how to set it up then try contacting your hostings support team, they may be able to help.
 
Also I haven't changed the DNS for the subdomain, I dont know how to do that

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.
 
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.
 
Back
Top