Skip to content

Instantly share code, notes, and snippets.

@rosschapman
Last active December 12, 2015 00:48
Show Gist options
  • Save rosschapman/4686501 to your computer and use it in GitHub Desktop.
Save rosschapman/4686501 to your computer and use it in GitHub Desktop.
Sample for #wordpress SSL admin
* Force admin over SSL
*/
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
if ( !defined('MOBILE'))
require_once(ABSPATH . 'wp-settings.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment