Instead of delete, you can move all files from /wp
to root
folder.
Then use this script to replace url from example.com/wp
to example.com
inside the database https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Follow these few steps.
- Move all your website files to root from
/wp
folder. - Upload the script folder to your web root.
- Browse to the script file URL in your web browser. eg. http://example.com/Search-Replace-DB/
- Fill in the fields as needed.
- Hit on run button
It will replace all your old string to your new string inside the database.
Related Posts:
- Migrating a WordPress site from One Hosting Provider to Another?
- Hosting WordPress on Azure?
- How do you seamlessly switch hosting?
- Hosting alternatives to WordPress.com [closed]
- Hosting WordPress on Google Apps Engine (GAE)
- nginx or cherokee ( +php-fpm ) for WordPress backend?
- Running WordPress on low-end hardware/resources?
- Where should I host my images?
- Best hosting for WordPress blog(s)? [closed]
- What issues would you face if you use Nginx
- How to detect that site is hosted on WPEngine?
- Is there a way to figure out the way to access hosting if I have admin privilege?
- WordPress hosting – Shared/dedicated server? Any recommendations? [closed]
- Host wordpress on a subdirectory of a Rails application
- Do I need “wordpress hosting” to host wordpress?
- Google Site and WordPress
- Deploy WordPress From Local Docker to Hosting Provider
- Do i need the git directory?
- How much should this hosting cost? [closed]
- How can I view or FTP into my WordPress site hosted on AWS?
- How can I use more than 2 DB’s
- WordPress out of memory allocated issue?
- Switched hosts to one with cPanel. To transfer my blog should I do the WP install or just be uploading my old WP directory & database?
- Free swf files hosting for wordpress blog
- Has anyone used the wordpress plugin w3-total-cache on a Dreamhost VPS successfully? [closed]
- WordPress moved to a new server with a new databank. Just Theme no plugins. Site worked for minutes then went offline. cant login. Server says 408
- Dynamic sites and hosting limits: PHP Workers VS User Processes Per Sec Limits
- Configure WordPress Installation autoinstalls via Softaculous in WHCMS [closed]
- “508 Resource Limit Is Reached” on WordPress site
- Free WordPress Hosting with Custom Themes? [closed]
- Recommendation for server config for WordPress Staging servers [closed]
- Choose specific kind of hosting service for WordPress?
- Is my host the problem?
- Is Windows hosting a bad idea for wp?
- Stepping up my game with WordPress hosting [closed]
- Can I move WordPress to another folder?
- Why is WordPress filtering Pastebin URL’s
- Different Server for Images
- How to host and manage for clients
- Fantastico pros and cons
- Add wordpress to only one domain in shared hosting with multiple domains
- lost all the links in WordPress after changing hosting
- Unable to Edit Destination settings – 1and1 hosting [closed]
- Hosting wordpress on Amazon [closed]
- How many WP websites can go on one shared hosting account?
- Hostinger masked redirection to wordpress website
- What’s more important for supporting concurrent users on an elearning site with dynamic content, CPUs or RAM?
- Resting a site for a couple of years
- A way to check if wordpress installation is self-hosted or hosted via wordpress.com?
- WIll it be a good idea to host my website images on a 3rd-party service?
- WordPress transfer problems Cant’ find variable jQuery
- Alternatives to hosting WordPress post content?
- Migrating existing site to Azure is slow
- How to check the speed of a WordPress site on different hosts without WordPress access?
- Problem With DNS or WordPress installation>
- Minimum EC2 Requirements for a stable WordPress site
- Integrate wordpress before hosting
- Factors for NON-cached performance?
- WordPress working only in directory named “wordpress”
- Will it make any difference if I have CDN on the same server but different directory?
- WordPress hosting good practice
- Can I host wordpress separately on one hosting account?
- I am looking for a specialist WordPress host [closed]
- How to Disconnect My Domain Name?
- Difference between WordPress stand alone & through host gator
- Call to undefined function _deprecated_file() in class-smtp.php
- Limit the harddrive storage of multiple WordPress instances on one webserver
- Can you host WordPress using Amazon Web Services such as EC2, RDS, EBS etc?
- Restoring WordPress posts from database only
- Hosting multiple WordPress sites on single server – best practices?
- How to move existing WordPress wp-content folder along with database to new server and new domain name?
- Best image hosting service
- Moving WordPress from host without FTP?
- How do I copy a wordpress database?
- WordPress hosting optimized servers – Is this just a sales gimmick? [closed]
- How to use WordPress for class notes?
- How can I view wordpress site hosted locally in my home LAN network from the Internet (outside LAN network)?
- (Big issue) Blog is Getting Down Each day.. what should i do.?
- Implementing an image hosting website using WordPress? [closed]
- looking for a hosting company for wordpress [closed]
- Site transferred to new server produces 404s
- Multisite – big hosting package or several hosting packages?
- Site lost all formatting when I attempted to migrate to Bluehost [closed]
- My redirect URL doesn’t show any pages on my website [closed]
- Resolving a 500 Error with GoDaddy Hosting? [closed]
- Host Private Custom Theme
- Is it possible to use different from email in contact form 7 with different domain?
- How to transfer a site to hosting?
- WordPress website working fine on localhost but not displaying front pages on webhost
- Using WordPress multisite for subsites only
- After moving a site to new hosting, not all images are showing in media library
- Website painfully slow after migration to VPS2
- ClassLoader.php issues after moving to a new host
- Team member plugin problem after changing to another hosting
- uploading a new theme to live server
- Formatting wordpress debug messages
- Moved my site to new host now getting 404
- Migrating domain name from old WP host to new (which uses vhosts)
- trying to install wp but i have no clue on hosting and servers [closed]
- wp-admin keeps forwarding me to an old url