Rewriting / Redirecting request outside wordpress

Normally, to add rewrite rules in WordPress there is the generate_rewrite_rules filter. From there you can call the function add_external_rule ($wp_rewrite->add_external_rule($rule)) where you could add your rule which not maps to index.php. Unfortunately WordPress will try to write this rule into the .htaccess file. But maybe this could be helpful.

I have cloudflare flexible enabled, How to redirect to https for Nginx server

There are several ways to enable https on your wordpress site. You need to update your site urls including https in it if you have access to your dashboard You can also define both the WP_SITEURL and WP_HOME in your test wp-config.php define( ‘WP_SITEURL’, ‘http://example.com.mytestdomain.com’ ); define( ‘WP_HOME’, ‘http://example.com.mytestdomain.com’ ); In relation to your nginx … Read more

Nginx rules for subdomain multisite install (Bedrock)

Ok some wise guy deleted my last post. The answer, which the above member (@etc) gave to me on another forum, and is working quite fine, is as follows: # Rewrites for Bedrock Multi-Site Subdomain Setup rewrite /wp-admin$ $scheme://$host$uri/ last; rewrite ^/(wp-.*.php)$ /wp/$1 last; rewrite ^/(wp-(content|admin|includes).*) /wp/$1 last; He revised his answer but did not … Read more

Editors can’t edit but administrators can

In the end the new server lock down was a red herring. There is a plugin, somewhere, which is requiring that editors have the role ‘manage_options’ enabled.. I installed a roles plugin (User Role Editor) and just granted them that extra access and it works now. I’ll need to go through the plugins to find … Read more

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