WordPress installed on a Sub-directory

Looks link you’re missing the forward slash / which is probably causing it to not locate the right files /.index.php <?php define(‘WP_USE_THEMES’, true); require( dirname( __FILE__ ) . ‘/web/wp-blog-header.php’ ); /web/index.php <?php define(‘WP_USE_THEMES’, true); require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ ); /.htaccess (the same as /web/.htaccess) # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /web/ … Read more

How turn on error reporting without reset?

In WordPress error reporting is primarily controlled by WP_DEBUG and other related constants in wp-config.php file. Typically they are completely independent of theme and plugins, although some (well coded) extensions adjust their behavior accordingly with debug settings.

Constant for ‘barebones’ update of WordPress

So in the old days when WordPress updated you got the whole shebang and deleting Akismet after every time was deadly boring. Things had slightly improved since then (partially driven by minimizing traffic it takes to serve update to everyone), but process also got more complicated. Now there are multiple versions of update archive that … Read more

How to request admin-ajax.php correctly when wordpress URL and site URL are different?

admin_url() should be used. However for some websites this request gives error 404 in front-end admin_url(‘admin-ajax.php’) should point to an actual file (admin-ajax.php), as such WordPress won’t pass it through index.php, and so it shouldn’t lead to the theme’s 404 page. (Unless the file has been deleted). … unless you have a .htaccess file which … Read more

Adding Security Keys?

Yes. If you use the generator to create the salts then add them to your wp-config.php file you can start reaping the benefits of much greater security. Any current sessions will be invalidated so you’ll have to log back in but otherwise there shouldn’t be any noticeable change. Automatic generation of random salts was added … Read more