0

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!!

0

https://developer.wordpress.org/reference/functions/content_url/ the guide may helfull to you to undestood the purpose of it

  • Does WP_CONTENT_DIR and WP_CONTENT_URL needs to be same? – Naveen Aug 23 at 14:17
  • no both are different WP_CONTENT_DIR = give you path of your directory where as WP_CONTENT_URL = give you url – nim Aug 23 at 14:23
  • I did the same but it causes 500 – Naveen Aug 23 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.