Hi Guys, I have a wordpress website which I need to migrate to other hosting. I have downloaded the files and uploaded the same on to new hosting. Then imported the database to the new server. After that changed the SiteURL and Home but still the website is not working properly. Could you please help me out? Old URL: www .myhomeswa. com.au New URL: http :// 27.54.81.161 /~myhomesw/ Thanks in advance.
Thanks for the response. My hosting company says they can't help me and I need to resolve the issue by my own. :-(
Is it working now ? because I accessed your url and its working fine. Let me know if you still have any problems with your wordpress website and I will help you
I changed the wp-config file and added the SiteURL and Home there. I don't know why it didn't worked when I have already changed the same from Database > Options> SiteURL and Home But now the problem is home page is working but no inner page. :-(
Seems like you got the problem resolved because it works for me now. It's just loading a post page is really slow.
Ah, right, helps to re-read. I did of course not test the IP-address. Yeah, I see the problem. Sure your .htaccess got transferred over as well, to the new host?
Yes, Below is the content of htaccess file: # 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 Redirect 301 /admin /wp-admin # BEGIN W3TC Page Cache core <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_COOKIE} w3tc_preview [NC] RewriteRule .* - [E=W3TC_PREVIEW:_preview] 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/uploads/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_PREVIEW}.html" -F RewriteRule .* "/wp-content/uploads/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_PREVIEW}.html" [L] </IfModule> # END W3TC Page Cache core
go to wp-admin>settings>general change the url on 1st and 2nd box, the one who show the url name (even if its look correct just press the button to update again), and then go to permalink and press the button again, hope its work update: seem u using cache (i can see from the htaccess file) try to clear it, maybe that is the problem, your page still on cache
rename cache plugin folder in wp-plugins. that should fix the problem. btw, that plugin will be disabled. so backup and then do.
When you are migrating account from the domain (***.tld) to subfolder (***.com/username) you should change old urls in many places, not simply changing url in /wp-admin/ How to do this? Run queries in mysql (ex. phpmyadmin): UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl'); UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl'); UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl'); Code (markup):
It sounds like you did not transfer your .htaccess file. As the .htaccess file is a hidden file, you may have missed it during the migration. Simply create a file using file manager, or a ftp program (or vi if you have shell access) and add the following # 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 Code (markup): You may be missing additional information if you have a caching plugin enabled, but this should be enough information to verify that your internal pages are now working. Save it, and make sure the file is owned by the correct user:group, and give it a whirl