Clone WordPress for testing on localhost (with Fiddler)


My local setup for WordPress is at

When calling, I get the page served; including Google CAPTCHA. But the login post to a 302 redirect to

In order to overwrite my server default domain I added locally this to my wp-config.php file:


In my Fiddler Web Debugger script I am using the following code to redirect my browser to go to my local setup:

if (oSession.HostnameIs("")){
    oSession.bypassGateway = true;
    if (oSession.HTTPMethodIs("CONNECT")){
        oSession["x-replywithtunnel"] = "FakeTunnel";
    oSession["x-overrideHost"] = "";
    oSession.fullUrl = "" + oSession.PathAndQuery;

How can I get WordPress returned page to be rewritten before it gets sent to the browser, so it changes all to

— OR —

Is there a smarter way to go about all of this within WordPress?

I had a look at Change WordPress image URLs via filter because it is somewhat related, but could not figure it out.

MeSo2 4 months 0 Answers 10 views 0

Leave an answer