• Resolved todi4444

    (@todi4444)


    Hello everyone! I have a website eg https://www.mywebsite.com. I build a new template of wordpress in a subfolder named “shop” (https://www.mywebsite.com/shop) . Now I am finished the website and I want my domain eg https://www.mywebsite.com to leads in my new website. How can I do that? Will I face problem because the links will be changed? If I just copied to the parent folder will it work fine? I tried to change through cpanel the addon domain path to leads in the folder shop directly but error 500 returns on screen. Please can anyone help me?? Thank you in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • @todi4444

    First move your website files to the parent folder. Then, open your website’s database using phpMyAdmin or the software to manage and edit databases. Since you have cPanel installed on your server, you should have phpMyAdmin by default. Go to the table named wptableprefix_options. There you will notice two lines named siteurl and home under the option_name column. Click on Edit and change it to https://www.mywebsite.com. Repeat the same for the other value as well. It should work as it did for me.

    Thread Starter todi4444

    (@todi4444)

    I cannot find this table… ?? Can you help me??

    @todi4444
    View the wp-config.php file of your website. You’ll find a value named $table_prefix;. If it’s $table_prefix = 'wp_';, the database table will be named wp_options.

    Thread Starter todi4444

    (@todi4444)

    ok! the problem solved. I did it through the setting of admin area. I set the right website url and everything works fine. Thank you for the reply.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘TRANSFER WEBSITE TO PARENT FOLDER’ is closed to new replies.