admin管理员组文章数量:1312769
While trying to move the wp-content to new folder, there is constant called WP_CONTENT_URL
.
Why do we need this one? Does WP_CONTENT_DIR
and WP_CONTENT_URL
needs to be same?
Bcoz there are several websites which can find my wordpress themes and plugins. how do they do that?
I am trying to move move my wp-content folder so added this code in wp-config.php just above require_once( ABSPATH . 'wp-settings.php' );
define('WP_CONTENT_DIR', dirname(__FILE__) . 'server/stuffs');
define('WP_CONTENT_URL', 'https://' . $_SERVER['HTTP_HOST'] . 'server/stuffs' );
But it causes Internal server error, when I trying to access my admin page
Thanks in Advance!!
While trying to move the wp-content to new folder, there is constant called WP_CONTENT_URL
.
Why do we need this one? Does WP_CONTENT_DIR
and WP_CONTENT_URL
needs to be same?
Bcoz there are several websites which can find my wordpress themes and plugins. how do they do that?
I am trying to move move my wp-content folder so added this code in wp-config.php just above require_once( ABSPATH . 'wp-settings.php' );
define('WP_CONTENT_DIR', dirname(__FILE__) . 'server/stuffs');
define('WP_CONTENT_URL', 'https://' . $_SERVER['HTTP_HOST'] . 'server/stuffs' );
But it causes Internal server error, when I trying to access my admin page
Thanks in Advance!!
Share Improve this question edited Aug 23, 2019 at 14:47 Naveen asked Aug 23, 2019 at 13:54 NaveenNaveen 11 silver badge3 bronze badges1 Answer
Reset to default 1https://developer.wordpress/reference/functions/content_url/ the guide may helfull to you to undestood the purpose of it
本文标签: pluginsWhat is the purpose of WPCONTENTURL
版权声明:本文标题:plugins - What is the purpose of WP_CONTENT_URL? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741901727a2403905.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论