Woocommerce posts and products links works only once and then get 404 error

I realized that some php code changes the content of .htaccess file. The php folder was in a directory named ‘securityl’. I’ve been removed that directory but whenever the website was refreshing the directory and also the php files inside it was recreating. In the end I discovered that some code in wp-include/load.php is creating … Read more

Force a 403 response to xml file in WordPress

So to restate your question you want mydomain.com/autodiscover/autodiscover.xml to produce a 403, and your WordPress installation is at mydomain.com/ ? Then this should do it to match that specific file only: RewriteRule ^autodiscover/autodiscover.xml – [R=403,NC,L]

Clone WordPress for testing on localhost (with Fiddler)

I added this to Fiddler’s script in %USER%\Documents\Fiddler2\Scripts\CustomRules.js under OnBeforeResponse and the response rewrite started working static function OnBeforeResponse(oSession: Session) { if (m_Hide304s && oSession.responseCode == 304) { oSession[“ui-hide”] = “true”; } if (oSession.oResponse.headers.ExistsAndContains(“Content-Type”,”text/html”)){ oSession.utilDecodeResponse(); oSession.utilReplaceInResponse(‘127.0.0.3′,’my.domain.name’); oSession.utilReplaceInResponse(‘http:’,’https:’); } } and needed to set // define(‘WP_HOME’,’http://127.0.0.3/blog’); // define(‘WP_SITEURL’,’http://127.0.0.3/blog’); define(‘FORCE_SSL_LOGIN’,false); define(‘FORCE_SSL_ADMIN’,false); in wp-config.php In order to be … Read more

Htaccess file reset automatically how to fix this issue

Disabling Plugins: This may be due to some plugin. So not only disable plugin, also try deleting folder of the plugin and its files like installer.php (example file) in the uploads folder. .htaccess File Permission Check for proper file permissions. More over you can check the debug log. If its a live website, just replace … Read more