.htaccess and WordPress Admin Bar

OK. It appears it was a cookie path problem. I eventually solved it by adding @define( ‘ADMIN_COOKIE_PATH’, “https://wordpress.stackexchange.com/” ); to the start of wp-config.php – as suggested by AppFlak. The vital clue came from monitoring the output of wp_parse_auth_cookie() under various states. Thanks for the ideas, guys! Makes it a lot easier with extra brains … Read more

Which WordPress scripts need to be executable for a fresh installation?

Due to WP admin architecture this would be really inconvenient list to compile and maintain reliably. My best educated guess is that many (but possibly not all and not just) of these files would need to require admin bootstrap (wp-admin/admin.php) to function. I ran a quick search on respective directive with following results: C:\server\www\dev\wordpress\src>ack –files-with-matches … Read more

.htaccess for wordpress in separate folder

Rather than change .htaccess, move the index.php up to root, open it, and change: require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ ); to: require( dirname( __FILE__ ) . ‘/wp/wp-blog-header.php’ ); In Settings, your WordPress address should be http://example.com/wp, and Site address should be http://example.com. This process is outlined in the Codex page Giving WordPress Its Own … Read more

How can I code my plugin to safely modify .htaccess?

/wp-admin/includes/misc.php includes the function insert_with_markers() : /** * Inserts an array of strings into a file (.htaccess ), placing it between * BEGIN and END markers. * * Replaces existing marked info. Retains surrounding * data. Creates file if none exists. * * @since 1.5.0 * * @param string $filename Filename to alter. * @param … Read more

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