Why am I unable to login after converting to www?

You don’t need a rewrite rule in .htaccess to add www back in. Remove the rewrite rule, remove all the defines in wp-config and try to login. If that doesn’t work, delete permalinks in .htaccess to force them back to default. After you’re in, add the www in Dashboard>>Settings and save. Then reset permalinks.

Creating the wp-config.php file manually

Here is how you make your config.php manually: In your download there should be a wp-config-sample.php. Open this is a text editor. Fill in your database connection details. Go to https://api.wordpress.org/secret-key/1.1/salt/ and get the code. Copy the above cope and paste into the sample file over the top of the existing defines Save the file … Read more

Custom theme folder

The default theme directory is registered like this in wp-settings.php // Register the default theme directory root register_theme_directory( get_theme_root() ); where function get_theme_root( $stylesheet_or_template = false ) { global $wp_theme_directories; if ( $stylesheet_or_template && $theme_root = get_raw_theme_root( $stylesheet_or_template ) ) { // Always prepend WP_CONTENT_DIR unless the root currently registered as a theme directory. // … Read more

How to Better Control WordPress Cron Jobs?

To disable WordPress Cron Jobs, place this in wp-config.php: define(‘DISABLE_WP_CRON’, true); To schedule a cron job in Linux with cPanel for example… This is the command you might run: wget -q -O – http://www.your-domain.org/wp-cron.php?doing_wp_cron >/dev/null 2>&1 The end of the above command just suppresses any output. Just pick the interval of your choice for setting … Read more

html lang=”” instead of lang=”en-us” – why?

You can apply the language_attributes filter to language_attributes() function (source). Basically you can do this by adding something like this to your functions.php: add_filter(‘language_attributes’, ‘custom_lang_attr’); function custom_lang_attr() { return ‘lang=”en-US”‘; } Note: Keep in mind, that you’re overwriting the language parameter; the original string (see @param) is a space-separated list of language attributes.

Enable Full SSL for WordPress

I had the same problem and solved it by moving the two define statements up before the require_once that includes wp-settings.php. Seems this was the issue all along. Source: https://stackoverflow.com/a/27193576/117268