简体   繁体   中英

Point Domain to Specific Folder In cPanel

I've just installed WordPress on a shared hosting provider for the first time. The hosting service uses cPanel. When I go to my-new-website.com , the cgi-bin and wp folders are displayed. WordPress was installed in the wp folder. Currently, I have to go to my-new-website.com/wp to load the WordPress site. What do I need to do in cPanel, so that WordPress is loaded when someone visits my-new-website.com

My future plans are to have two additional websites that have their own instance of WordPress installed on my shared hosting account.

Move Files

Move all your files in wp directory to root folder / public_html

Change wp_options Table

Change site_url and home in wp_options table from my-new-website.com/wp into my-new-website.com

ps: you may also need to update .htaccess file if in your .htaccess file rewrite base is RewriteBase /wp/ , change it into RewriteBase / . By default .htaccess is hidden please check option to show hidden files in your file manager.

Hope it helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM