Accessing private posts through REST API, same code that works in remote doesn’t in local

The problem was that I didn’t completely clone the wp site, and I forgot to install the plugin that I used to manage user roles The plugin is Members (“User Role Editor by Members – Best User, Role and Capability Management Plugin for WordPress”) by MemberPress, and there I can allow the roles that I … Read more

Permalinks on Windows IIS not working and web.config breaks site – does wordpress not support windows server now, if so how?

Download IIS Rewrite from https://www.iis.net/downloads/microsoft/url-rewrite. Install and restart IIS Then modify the web.config Edit web.config, add the rewrite code. <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <defaultDocument> <files> <add value=”index.php” /> </files> </defaultDocument> <rewrite> <rules> <rule name=”Main Rule” stopProcessing=”true”> <match url=”.*” /> <conditions logicalGrouping=”MatchAll”> <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” /> <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” /> </conditions> <action type=”Rewrite” … Read more

Is Windows hosting a bad idea for wp?

This is a partially subjective question, so it may get closed on that basis. Answer given here may be somewhat subjective but tries to cover the main considerations. Short Answer The short answer is you’ll definitely have a much easier life running WordPress on Linux. This is simply due to many more people hosting WordPress … Read more

Connect to MySQL using Windows Authentication

This is just bad security method. Because the only way you can connect to the mysql database is via that pc you use. Where is if you username/pwd, you can move the site to another server, etc. So Windows Authentication is a bad idea, too easy to overcome, and honestly just not that secure. Where … Read more

wordpress http to https windows server

for anyone interested the hosting company is going to convert wp install to linux so that should sort things. found this plugin https://wordpress.org/plugins/really-simple-ssl/ which could be good for anyone having issues on linux.

Different development environments (Mac & Windows)

You need to have 2 sets of settings one for if file_exists and one for else: if ( file_exists( dirname( __FILE__ ) . ‘/local-config.php’ ) ) { include( dirname( __FILE__ ) . ‘/local-config.php’ ); define( ‘WP_LOCAL_DEV’, true ); } else { define(‘WP_HOME’, ‘http://localhost:666/projectname/’); define(‘WP_SITEURL’, ‘http://localhost/foldername/wordpress/’); }

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