WordPress使用现有域

我想在我的网站上建立一个博客,像/blog这样的东西可以访问。 所有的文件都按照指示上传到公共的html上。 然后我意识到我两者都有索引.html(原件)和索引.php在同一个文件夹中。我正在考虑将所有WordPress文件移到一个子文件夹中,因为我似乎无法从尝试中得到任何响应http://www.<;mydomain>;.co.uk/index.php 我找错树了吗? - 这个主题是4年4个月前由pinnerite修改的。 您可以索引.html以及索引.php在同一个文件夹中,仍然可以访问其中一个,并且当其中一个不是浏览器。如果你确实把你的WordPress移到了一个子文件夹,但仍然希望能够访问索引.html在\"root\"中,则我相信子文件夹名称将始终需要显示在浏览器地址栏中。 - 此答复是4年4个月前由leejosepho修改的。 谢谢。 因此当我输入时http://www.<;mydomain&;gt;.co.uk/wp公司-管理员我应该得到一个登录页面,但我没有得到任何有意义的回应。 似乎我对wp的编辑肯定有问题-配置.php. 回来之前我会仔细检查一下cPanel。 我想问题很可能是我没有正确输入数据库服务器名。 在DBu主机上,我输入了我的机器的主机名。 我刚在$hostname检查过它 应该还有更多吗? 这是我自己的一个wp的例子-配置.php文件: /** Select MySQL Database **/define(\"DB_NAME\", \"mydbname\");define(\"DB_USER\", \"mydbuser\");define(\"DB_PASSWORD\", \"mydbpassword\");/*** MySQL hostname */define(\"DB_HOST\", \"localhost\");/* Database Charset */define(\"DB_CHARSET\", \"utf8\"); 数据库名称、用户和密码必须与服务器上的任何内容匹配,\"localhost\"是我唯一用过的任何地方。然后呢在wp中进一步-配置.php是您的数据库必须有表前缀的地方: /** Database Table_Prefix> - This reply was modified 4 years, 4 months ago by leejosepho. - This reply was modified 4 years, 4 months ago by leejosepho. - This reply was modified 4 years, 4 months ago by leejosepho. - This reply was modified 4 years, 4 months ago by leejosepho. I always change my hostname so as to identify every machine on my LAN so that is not the cause of my problem. The table_prefix is the default -> wp_ I have checked and triple-checked the other entries,I think the time has come to raise the issue with my hosting provider Nativespace. Presumably it is their MySql server and that my have issues at the moment. So did go through the actual install process on the root directory? Just asking since you mentioned that you wanted to move the installation to /blog. Also what message are you seeing when you go to /wp-admin? No the install process was handled via me as the user. Since you confirmed that I need not move the files to a separate folder I left them on my hosting provider\"s /public_html folder. When I go to my domain\"s /wp-admin from Google I get an apparently random return from a Google search. However, something niggles me. When I accessed MySQL to create the database it was handled via cPanel which would be addressing the facilities allocated to me by Nativespace and not MySQL on my demestic machine. Indeed at this stage I do not even have MySQL (or MariaDB) installed on my machine. So what is DB_HOST supposed to be pointing to? What is its purpose? Are you trying to make a local installation (your own machine) or an installation at your host (an online server)?If you are trying to make your local machine into an online server, you would need to begin there and then later add WordPress. Edit: If you are trying to make a local installation, here is the simplest way: https://www.apachefriends.org/index.html - This reply was modified 4 years, 4 months ago by leejosepho. No my existing domain is hosted on Nativespace. It is to /public_html on my section of their server to which I have uploaded the WordPress files. For DB_HOST I have tried assigning \"albury.asandco\" (my machine\"s hostname but have since switched to \"localhost\". Neither produce anything different. I certainly cannot get a login panel. Although I can access my website at the moment, I cannot access Nativespace in order to seek advice from them. Neither the .com or .co.uk sites. I am no expert at all of this, but I have several domains working at my online host and I also have just copied one site into Xampp and have it running on my local machine.Overall, here is where I do not understand what you are trying to do: When I accessed MySQL to create the database it was handled via cPanel which would be addressing the facilities allocated to me by Nativespace and not MySQL on my domestic machine. Indeed at this stage I do not even have MySQL (or MariaDB) installed on my machine. So what is DB_HOST supposed to be pointing to? What is its purpose? What do you mean by \"domestic machine\"?I hear that as your \"local machine\" there at home or in your office or wherever, and there is no reason for it to be involved in any of this other than for using its browser and editors to access and fix or customize the site at your online host.Also, a link to your site would be helpful here. - This reply was modified 4 years, 4 months ago by leejosepho. Thanks for responding. Yes by domestic machine, I meant the local machine from which I access my domain. My web site is: http://www.asandco.co.uk That link goes to your non-WordPress site at your domain, so the link that would be helpful here would be http://www.asandco.co.uk/blog/或http://www.asandco.co.uk/wordpress/或任何您的WordPress文件夹和文件所在的地方位于那一点,如果你已经有了一个工作表,像http://www.asandco.co.uk/wordpress/wp-admin/这样的东西应该会让你进入一个登录页面安装。还有,您的本地计算机不需要任何与WordPress.WordPress只需处理和满足浏览器对其数据库和wp内容文件夹和文件中的网站内容的请求。 - 此回复已修改4年,4个月前,作者leejosepho。 在Nativespace,WordPress文件与我的网站的文件位于/publicuHTML上。 http://www.asandco.co.uk/wp-admin/ 让我进入一个新安装的登录屏幕(昨天甚至没有这样做),但我已经创建了第一部分,包括通过cPanel. 您可以编辑wp-配置.php要使用数据库,WordPress目前无法找到或只是完成安装,然后稍后更改数据库…这是我可能会做的。 谢谢。我会照你的建议去做

admin_action_{$_REQUEST[‘action’]}

do_action( "admin_action_{$_REQUEST[‘action’]}" )动作钩子::在发送“Action”请求变量时激发。Action Hook: Fires when an ‘action’ request variable is sent.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$_REQUEST['action']引用从GET或POST请求派生的操作。源码(Source)更新版本源码位置使用被使用2.6.0 wp-admin/admin.php:...

日期:2020-09-02 17:44:16 浏览:1159

admin_footer-{$GLOBALS[‘hook_suffix’]}

do_action( "admin_footer-{$GLOBALS[‘hook_suffix’]}", string $hook_suffix )操作挂钩:在默认页脚脚本之后打印脚本或数据。Action Hook: Print scripts or data after the default footer scripts.目录锚点:#说明#参数#源码说明(Description)钩子名的动态部分,$GLOBALS['hook_suffix']引用当前页的全局钩子后缀。参数(Parameters)参数类...

日期:2020-09-02 17:44:20 浏览:1060

customize_save_{$this->id_data[‘base’]}

do_action( "customize_save_{$this-&gt;id_data[‘base’]}", WP_Customize_Setting $this )动作钩子::在调用WP_Customize_Setting::save()方法时激发。Action Hook: Fires when the WP_Customize_Setting::save() method is called.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_data...

日期:2020-08-15 15:47:24 浏览:800

customize_value_{$this->id_data[‘base’]}

apply_filters( "customize_value_{$this-&gt;id_data[‘base’]}", mixed $default )过滤器::过滤未作为主题模式或选项处理的自定义设置值。Filter Hook: Filter a Customize setting value not handled as a theme_mod or option.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_date['base'],指的是设置...

日期:2020-08-15 15:47:24 浏览:887

get_comment_author_url

过滤钩子:过滤评论作者的URL。Filter Hook: Filters the comment author’s URL.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/comment-template.php:32610...

日期:2020-08-10 23:06:14 浏览:925

network_admin_edit_{$_GET[‘action’]}

do_action( "network_admin_edit_{$_GET[‘action’]}" )操作挂钩:启动请求的处理程序操作。Action Hook: Fires the requested handler action.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$u GET['action']引用请求的操作的名称。源码(Source)更新版本源码位置使用被使用3.1.0 wp-admin/network/edit.php:3600...

日期:2020-08-02 09:56:09 浏览:873

network_sites_updated_message_{$_GET[‘updated’]}

apply_filters( "network_sites_updated_message_{$_GET[‘updated’]}", string $msg )筛选器挂钩:在网络管理中筛选特定的非默认站点更新消息。Filter Hook: Filters a specific, non-default site-updated message in the Network admin.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分$_GET['updated']引用了非默认的...

日期:2020-08-02 09:56:03 浏览:855

pre_wp_is_site_initialized

过滤器::过滤在访问数据库之前是否初始化站点的检查。Filter Hook: Filters the check for whether a site is initialized before the database is accessed.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/ms-site.php:93910...

日期:2020-07-29 10:15:38 浏览:825

WordPress 的SEO 教学:如何在网站中加入关键字(Meta Keywords)与Meta 描述(Meta Description)?

你想在WordPress 中添加关键字和meta 描述吗?关键字和meta 描述使你能够提高网站的SEO。在本文中,我们将向你展示如何在WordPress 中正确添加关键字和meta 描述。为什么要在WordPress 中添加关键字和Meta 描述?关键字和说明让搜寻引擎更了解您的帖子和页面的内容。关键词是人们寻找您发布的内容时,可能会搜索的重要词语或片语。而Meta Description则是对你的页面和文章的简要描述。如果你想要了解更多关于中继标签的资讯,可以参考Google的说明。Meta 关键字和描...

日期:2020-10-03 21:18:25 浏览:1694

谷歌的SEO是什么

SEO (Search Engine Optimization)中文是搜寻引擎最佳化,意思近于「关键字自然排序」、「网站排名优化」。简言之,SEO是以搜索引擎(如Google、Bing)为曝光媒体的行销手法。例如搜寻「wordpress教学」,会看到本站的「WordPress教学:12个课程…」排行Google第一:关键字:wordpress教学、wordpress课程…若搜寻「网站架设」,则会看到另一个网页排名第1:关键字:网站架设、架站…以上两个网页,每月从搜寻引擎导入自然流量,达2万4千:每月「有机搜...

日期:2020-10-30 17:23:57 浏览:1298