
Transfer WordPress to Other Server
This is very often situation where you need to transfer WordPress from one server to another server. Below are steps, by which this thing can be done most easily.
- Transfer all files to other server where you will need to setup WordPress.
- Go to wp-content/wp-config.php , set database name, username, password and host name.
- Open the database, go to wp_options table , set site_url value and home .. both this option will have value will have new server home url. In case if you want to setup it for local server then give url address for local server http://localhost/abc . site_url has option_id value is 1 and home has option_id value is 37 if you would like to locate them quickly.
- Now next thing, if already website has posts or pages.. then we may need to change its url. We are not going to entertain this thing by one by one record instead of we will fire query to make life easier. We need to change value guid in wp_post table… suppose older server address is abc. com and new server is xyz.com then below query will replace all value of url of abc.com to xyz.com. You can repeat below process for post_content field in wp_post as per your need.
- So by this way we have converted all older server’s url by new one.Lastly check .htaccess file at root folder. Add folder location as per your need Suppose my website at local server. It location is in abc folder then .htaccess code will look like as below
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /abc/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /abc/index.php [L] </IfModule>
If website at root folder then code no need to put folder location in RewriteBase and Rewrite Rule. Code will look like<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ./index.php [L] </IfModule>
Note : Please ignore .htaccess related change if you don’t want Permalink in custom structure folder. If Permalink is set with default option, then .htaccess related changes not required.That’s all . You done.
Related Posts:












Facebook Likes
Categories
- 500 Internal Server
- Agile Development Process
- Analysis
- Android
- Artificial intelligence
- ASP.Net
- Blockchain
- CakePHP
- Car dealership
- Case Study
- Chatbot
- Cloud Computing
- Cloudbed
- CMS
- Codeigniter
- CRM
- Custom Software
- Cyber Security
- Database Normalization
- Digital Marketing
- Digital signature
- Drupal Developers
- e Commerce Website Development
- Edge Computing
- Email Marketing
- Flutter
- Goodbye 2018
- Google API Vs Bing API
- HTML5
- HTTP error
- Instagram Checkout
- Ionic
- IOT Application
- iPhone
- IT management
- iWatch
- Joomla Developers
- jQuery
- Laravel
- Laravel Horizon
- linkshare
- Machine Learning
- Mobile Application
- Mysql
- Normalization
- Organic Search
- Payment Gateway
- PCI Compliance
- PHP
- PHP framework
- Plugin
- Prototype Design
- Python
- Quality Assurance
- React Native
- Responsive
- Robotic Process Automation
- SAAS Software
- SEO (Search Engine Optimization)
- Software Development
- System Analysis
- UI/UX Design
- Unicommerce
- Vue.js
- Waterfall Development Process
- web application
- Web Design
- Web Development
- Wireframe
- Woocommerce
- Wordpress
- wordpress-Multi Website
Recent Posts
- 5 Ground Rules to Hire WordPress Developers India
You’re a startup and want an effective online presence....
- Case Study for Ride Sharing App like Bla Bla Car
France based ride-sharing startup has valued more than...
- Steps to Optimize the Car Dealer Website and Mobile App
A dull dealership website is a major drag for an auto...
- Mistakes That Most Developers Do While Developing a Car Dealer Management System
The growth of any business in this technology-driven...
- What is Apple CarPlay?
Carplay is an infotainment system from the apple. Basically,...