WordPress – Promoting A Dev Build In A Subdirectory To Production / Root Directory

…just point Apache’s root directory to /public_html/development If you do this, I would seriously consider renaming “development” to “live” or something more meaningful, otherwise it’s going to get confusing going forward. Then you can create an .htaccess file in the document root with just the following mod_rewrite directive to rewrite everything to the /live subdirectory … Read more

Cannot complete migration on LAMP

I was able to solve the problem by adding these two lines to /var/www/my-wp-site.com/public_html/wp-config.php: define( ‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’] ); define( ‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’] );

Why is the domain name missing from the logout redirect?

I have traced the problem to this code in wp-login.php: case ‘logout’ : check_admin_referer(‘log-out’); $user = wp_get_current_user(); wp_logout(); echo “hello”; echo $_REQUEST[‘redirect_to’]; if ( ! empty( $_REQUEST[‘redirect_to’] ) ) { $redirect_to = $requested_redirect_to = $_REQUEST[‘redirect_to’]; } else { $redirect_to = ‘wp-login.php?loggedout=true’; $requested_redirect_to = ”; } It appears if I change this line: $redirect_to = ‘wp-login.php?loggedout=true’; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)