Tag Info

New answers tagged

0

Strip the preceeding forward slashes from your rules: Example (incorrect) RewriteRule ^/css/(.*) /wp-content/themes/themename/css/$1 [QSA,L] Example (correct) RewriteRule ^css/(.*) wp-content/themes/themename/css/$1 [QSA,L] All rules (correct) # BEGIN WordPress <IfModule mod_rewrite.c> RewriteRule ^/index\.php$ - [L] RewriteRule ^css/(.*) ...


0

Here's what mostly works: Have an nginx config file for the subdomain setup, and ensure that http://wordpress.example.com works. In the nginx default config, have a location block for /blog that proxies to the subdomain: location /blog { rewrite ^/blog(/?.*)$ $1 break; # remove "/blog" proxy_set_header Host wordpress.example.com; ...



Top 50 recent answers are included