Can I rename the WordPress folder?

Can I rename the WordPress folder?

There are times when you need to move WordPress around within your server, and times when you need to move WordPress from one server to another. You don’t need to reinstall. WordPress is flexible enough to handle all of these situations.

When Your Domain Name and URLs Do Not Change

Moving your domain without changing the Home and Site URLs of your WordPress site is very simple, and in most cases can be done by moving the files.

  • If database and URL remains the same, you can move by just copying your files and database.
  • If database name or user changes, edit wp-config.php to have the correct values.
  • If you want to test before you switch, you must temporarily change “siteurl” and “home” in the database table “wp_options” (through phpMyAdmin or similar).
    If you had any kind of rewrites (permalinks) setup you must disable .htaccess and reconfigure permalinks when it goes live.

If you are changing to a new server but same domain, all you need to do is edit wp-config.php with your new database/user information and upload everything as it is to your new server.

When Your Domain Name or URLs Change

When your domain name or URLs change – i.e. from to, or to – there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display.

If you do a search and replace on your entire database to change the URLs, you can cause issues with data serialization, due to the fact that some themes and widgets store values with the length of your URL marked. When this changes, things break. To avoid that serialization issue, you have two options:

  1. Only perform a search and replace on the wp_posts table.
  2. Use the Search and Replace for WordPress Databases Script to safely change all instances. ( If you are a developer, use this option. It is a one step process as opposed to the 15-step procedure below )

My name is Serge and I’m a creative geek. I truly love web and I enjoy using its great potential.

View my other posts

5 Comments on “Can I rename the WordPress folder?”

  1. test says:

    testowy komentarz ąśęłóńć

  2. I really enjoy examining on this internet site , it has got great posts .

  3. dekapoker agen idn poker terpercaya dengan jenis permainan yang lengkap seperti Texas Poker, DominoQQ, Bandar Ceme, Ceme Keliling, Capsa Susun, Omaha dan Super10.

  4. Judi Poker Online Terpercaya selaku penyedia game poker uang asli terbesar di Indonesia menunjuk langsung situs IDN Poker DEKAPOKER untuk menjadi agen resmi di Indonesia.

  5. Apakah anda ingin dapat uang dengan mudah dan cepat di dapatkan hanya dalam waktu dekat ? silahkan kunjungi situs judi online kami yang menyediakan informasi penting dan selalu terupdate hanya untuk anda

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.