[英]Point Domain to Specific Folder In cPanel
I've just installed WordPress on a shared hosting provider for the first time. 我是第一次将WordPress安装在共享托管服务提供商上。 The hosting service uses cPanel.
托管服务使用cPanel。 When I go to my-new-website.com , the cgi-bin and wp folders are displayed.
当我转到my-new-website.com时 ,将显示cgi-bin和wp文件夹。 WordPress was installed in the wp folder.
WordPress已安装在wp文件夹中。 Currently, I have to go to my-new-website.com/wp to load the WordPress site.
目前,我必须转到my-new-website.com/wp来加载WordPress网站。 What do I need to do in cPanel, so that WordPress is loaded when someone visits my-new-website.com
我需要在cPanel中做什么,以便当有人访问my-new-website.com时加载WordPress。
My future plans are to have two additional websites that have their own instance of WordPress installed on my shared hosting account. 我未来的计划是在共享主机帐户上安装两个具有自己的WordPress实例的其他网站。
Move Files 移动文件
Move all your files in wp directory to root folder / public_html
将您wp目录中的所有文件移动到根文件夹/
public_html
Change wp_options Table 更改wp_options表
Change site_url and home in wp_options table from my-new-website.com/wp
into my-new-website.com
将wp_options表中的site_url和home从
my-new-website.com/wp
为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 /
. ps:如果您的.htaccess文件中的重写基址是
RewriteBase /wp/
,请将其更改为RewriteBase /
,则可能还需要更新.htaccess文件。 By default .htaccess is hidden please check option to show hidden files in your file manager. 默认情况下,.htaccess是隐藏的,请选中选项以在文件管理器中显示隐藏的文件。
Hope it helps 希望能帮助到你
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.