Powering only a subfolder with WordPress on a LAMP stack with an nginx reverse proxy

If you are still looking for a solution, your nginx configuration should look like this in order to achieve what you described… server { listen 80; server_name yourdomain.com root /path/to/yourdomain.com; index index.php index.html; location / { # directives to handle static site } location /sub { # directives to handle WordPress try_files $uri $uri/ /sub/index.php?$args; … Read more

Page URL not working due to physical directory

This isn’t really content negotiation at all, since there is an actual matching directory. Your server will not reach WordPress to process the URI if it encounters a directory first. You will need to either rename your directory or change the permalink for the page in order to have both working.

WP Codex answer incomplete? Put WP in subdirectory. .htaccess change required

use ths constants for set the install and main domain of WP define(‘WP_SITEURL’, ‘http://www.example.com’); define(‘WP_HOME’, ‘http://www.example.com/blog’); i think the htaccess is fine: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L] </IfModule> the index.php in the root has only an require to the file of the install: require(‘./wordpress/wp-blog-header.php’);

Page not found when trying to link to files in child theme directory

Shouldn’t you be enqueuing that in functions.php instead? function script_enqueueing() { wp_enqueue_script( ‘scripts’, get_stylesheet_directory_uri() . ‘/js/scripts.js’, array(‘jquery’) ); } add_action(‘wp_enqueue_scripts’, ‘script_enqueueing’); Edit to add: if calling directly in header.php, use get_template_directory_uri(); instead.