Posted By

mralexjuarez on 06/30/13


wordpress wp git wp-config

Versions (?)

Wordpress WP_ Settings

 / Published in: PHP

This snippet is used to set some wordpress directories / paths directly to the server name.

  1. define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/wordpress');
  2. define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']);
  3. define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content');
  4. define('WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/wp-content');

Report this snippet  

You need to login to post a comment.